add python mode to starlark code snippets
diff --git a/docs/skydoc_deprecation.md b/docs/skydoc_deprecation.md
index 87b7236..3ad957b 100644
--- a/docs/skydoc_deprecation.md
+++ b/docs/skydoc_deprecation.md
@@ -43,7 +43,7 @@
 
 ...the equivalent for Stardoc is:
 
-```
+```python
 my_rule = rule(
     implementation = _my_rule_impl,
     doc = """
@@ -83,7 +83,7 @@
 
 **BUILD**:
 
-```
+```python
 load("@io_bazel_stardoc//stardoc:stardoc.bzl", "stardoc")
 
 stardoc(
@@ -96,7 +96,7 @@
 
 **other/package/BUILD**:
 
-```
+```python
 load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
 
 bzl_library(
@@ -108,7 +108,7 @@
 
 **third/package/BUILD**:
 
-```
+```python
 load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
 
 bzl_library(
diff --git a/docs/writing_stardoc.md b/docs/writing_stardoc.md
index ce10ebd..ee76029 100644
--- a/docs/writing_stardoc.md
+++ b/docs/writing_stardoc.md
@@ -69,7 +69,7 @@
 `fields` parameter of the `provider()` function. Keys are required field
 names, and values are their corresponding docstrings.
 
-```
+```python
 MyInfo = provider(
     doc = """
 A provider with some really neat documentation.