summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2015-05-27 01:05:28 -0600
committerDan Allen <dan.j.allen@gmail.com>2015-05-27 01:05:28 -0600
commit7ed9339067ae8b451dbfff4a99c9c85318565360 (patch)
treeb6eff9263e9313e448b0a45878bfb5a5502b24af /examples
parent9bfa13d869efb1524bf77675857199a6ec0e1190 (diff)
update chronicles.adoc example
- switch Pygments theme to tango so the impact is clear - add not about broken syntax highlighting in admonition blocks - use callouts in Golo example
Diffstat (limited to 'examples')
-rw-r--r--examples/chronicles.adoc15
1 files changed, 9 insertions, 6 deletions
diff --git a/examples/chronicles.adoc b/examples/chronicles.adoc
index cb7c3af6..0ff4cfe1 100644
--- a/examples/chronicles.adoc
+++ b/examples/chronicles.adoc
@@ -16,7 +16,7 @@ project's true power.
:toclevels: 3
ifdef::backend-pdf[]
:pagenums:
-:pygments-style: bw
+:pygments-style: tango
:source-highlighter: pygments
endif::[]
// URIs:
@@ -340,7 +340,8 @@ point.
Back to the previous example, suppose that we have both a field and a method with the same name, as in:
.Java class with a field and method that share the same name
-[source,java]
+//FIXME source highlighting not working inside the admonition block
+//[source,java]
----
public class Foo {
public String bar;
@@ -355,15 +356,17 @@ public class Foo {
Hence, the following Golo code will resolve the +bar()+ method, not the +bar+ field:
.Golo picks the method over the field with the same name
+//FIXME source highlighting not working inside the admonition block
+//[source,golo]
----
let foo = Foo()
-# Write the field
-foo: bar("baz")
+foo: bar("baz") # <1>
-# Calls the bar() method
-println(foo: bar())
+println(foo: bar()) # <2>
----
+<1> Writes the field
+<2> Calls the `bar()` method
====
<<<