syntax highlighter

As mentioned here

By default, Rouge ( ) is used. Supported languages is list here

But the default syntax for syntax highlighting is as following

{% highlight ruby %}
def foo
  puts 'foo'
{% endhighlight %}

Compare syntax highlighting block

Syntax highlight examples


name list


SELECT * FROM db_table;


var foo = 'bar';


package fibsandlies;
import java.util.HashMap;

 * This is an example of a Javadoc comment; Javadoc can compile documentation
 * from this text. Javadoc comments must immediately precede the class, method, or field being documented.
public class FibCalculator extends Fibonacci implements Calculator {
    private static Map<Integer, Integer> memoized = new HashMap<Integer, Integer>();

     * The main method written as follows is used by the JVM as a starting point for the program.
    public static void main(String[] args) {
        memoized.put(1, 1);
        memoized.put(2, 1);
        System.out.println(fibonacci(12)); //Get the 12th Fibonacci number and print to console

yml (not yaml)

swagger: '2.0'
  title: NC Portal API
  description: Move your app forward with the NC API
  version: "1.0.0"
# the domain of the service
# array of all schemes that your API supports
  - http
  - https