Invocation Order
This section explains the order of method invocations on a syntax highlighter. For a concrete example we use this document:
= Syntax Highlighter Test
== Some sources
[source,java]
----
System.out.println("Hello Java");
----
[source,go]
----
fmt.Println("Hello Go")
----
For this document the calls to a syntax highlighter will happen in this order:
-
New SyntaxHighlighter
-
format
java
-
highlight
System.out.println("Hello Java");
-
format
go
-
highlight
fmt.Println("Hello Go")
-
hasDocInfo for HEADER
-
getDocInfo for HEADER
-
hasDocInfo for FOOTER
-
getDocInfo for FOOTER
-
isWriteStylesheet
-
writeStylesheet