aboutsummaryrefslogtreecommitdiff
path: root/src/Formats/StructuredFormatService.kt
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-02-26 19:34:49 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-02-26 19:34:49 +0100
commit44cef5ccc67c329ea2184aa00e8dc9eac5ca7f77 (patch)
tree1e389e8e9a91862e94b5901d7ee3d46c9d6bd42c /src/Formats/StructuredFormatService.kt
parent4f59034a9436ff23b021a878dba753b67d62b742 (diff)
downloaddokka-44cef5ccc67c329ea2184aa00e8dc9eac5ca7f77.tar.gz
dokka-44cef5ccc67c329ea2184aa00e8dc9eac5ca7f77.tar.bz2
dokka-44cef5ccc67c329ea2184aa00e8dc9eac5ca7f77.zip
syntax highlight code examples
Diffstat (limited to 'src/Formats/StructuredFormatService.kt')
-rw-r--r--src/Formats/StructuredFormatService.kt5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Formats/StructuredFormatService.kt b/src/Formats/StructuredFormatService.kt
index 7535449d..8d8341dd 100644
--- a/src/Formats/StructuredFormatService.kt
+++ b/src/Formats/StructuredFormatService.kt
@@ -10,8 +10,7 @@ public abstract class StructuredFormatService(locationService: LocationService,
override val extension: String) : FormatService {
val locationService: LocationService = locationService.withExtension(extension)
- abstract public fun appendBlockCode(to: StringBuilder, line: String)
- abstract public fun appendBlockCode(to: StringBuilder, lines: Iterable<String>)
+ abstract public fun appendBlockCode(to: StringBuilder, line: String, language: String)
abstract public fun appendHeader(to: StringBuilder, text: String, level: Int = 1)
abstract public fun appendParagraph(to: StringBuilder, text: String)
abstract public fun appendLine(to: StringBuilder, text: String)
@@ -72,7 +71,7 @@ public abstract class StructuredFormatService(locationService: LocationService,
appendParagraph(this, formatText(location, content.children))
}
is ContentBlockCode -> {
- appendBlockCode(this, formatText(location, content.children))
+ appendBlockCode(this, formatText(location, content.children), content.language)
}
is ContentBlock -> append(formatText(location, content.children))
}