Specify languages in kdoc code fragments (#1141)

diff --git a/kotlinpoet/src/main/java/com/squareup/kotlinpoet/NameAllocator.kt b/kotlinpoet/src/main/java/com/squareup/kotlinpoet/NameAllocator.kt
index 30bd328..8c39cab 100644
--- a/kotlinpoet/src/main/java/com/squareup/kotlinpoet/NameAllocator.kt
+++ b/kotlinpoet/src/main/java/com/squareup/kotlinpoet/NameAllocator.kt
@@ -22,7 +22,7 @@
  * first create an instance and allocate all of the names that you need. Typically this is a
  * mix of user-supplied names and constants:
  *
- * ```
+ * ```kotlin
  * val nameAllocator = NameAllocator()
  * for (property in properties) {
  *   nameAllocator.newName(property.name, property)
@@ -37,7 +37,7 @@
  *
  * Once we've allocated names we can use them when generating code:
  *
- * ```
+ * ```kotlin
  * val builder = FunSpec.builder("toString")
  *     .addModifiers(KModifier.OVERRIDE)
  *     .returns(String::class)
@@ -56,7 +56,7 @@
  * The above code generates unique names if presented with conflicts. Given user-supplied properties
  * with names `ab` and `sb` this generates the following:
  *
- * ```
+ * ```kotlin
  * override fun toString(): kotlin.String {
  *   val sb_ = java.lang.StringBuilder()
  *   sb_.append(ab)
diff --git a/kotlinpoet/src/test/java/com/squareup/kotlinpoet/TypesEclipseTest.kt b/kotlinpoet/src/test/java/com/squareup/kotlinpoet/TypesEclipseTest.kt
index d8e1396..a3ae52b 100644
--- a/kotlinpoet/src/test/java/com/squareup/kotlinpoet/TypesEclipseTest.kt
+++ b/kotlinpoet/src/test/java/com/squareup/kotlinpoet/TypesEclipseTest.kt
@@ -45,7 +45,7 @@
    *
    * To use this rule in a test, just add the following field:
    *
-   * ```
+   * ```java
    *   public CompilationRule compilationRule = new CompilationRule();
    * ```
    *