Skip to content

Instantly share code, notes, and snippets.

@lordofthejars
Created December 28, 2018 14:26
Show Gist options
  • Save lordofthejars/3b4961e5e83a5fa60eb3bb5c0e443183 to your computer and use it in GitHub Desktop.
Save lordofthejars/3b4961e5e83a5fa60eb3bb5c0e443183 to your computer and use it in GitHub Desktop.
= My Code
:source-highlighter: highlightjs
== Callouts
[source, java]
.MyClass.java
----
public class MyClass { // <1>
public static void main(String[] args) { // <2>
System.out.println("Hello World"); // <3>
}
}
----
<1> Class name
<2> Entry point for a runnable JAR
<3> Prints to console
== Autonumber callout
[source, java]
.MyClass.java
----
public class MyClass { // <.>
public static void main(String[] args) { // <.>
System.out.println("Hello World"); // <.>
}
}
----
<.> Class name
<.> Entry point for a runnable JAR
<.> Prints to console
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment