| title | Android Demo | ||
|---|---|---|---|
| language_tabs |
|
||
| toc_footers |
|
||
| includes |
|
||
| layout | custom_layout |
Quick proof-of-concept of Android vs Java samples
These should be highlighted properly:
System.out.println("I am Java!");System.out.println("Android wins!");
| require 'rouge' | |
| module Rouge | |
| module Lexers | |
| class Android < Rouge::Lexers::Java | |
| tag 'android' | |
| end | |
| end | |
| end |
| # Add this to the top of your config.rb file | |
| require File.expand_path('../android_lexer', __FILE__) | |
| # the rest of your original config.rb file.... |
| title | Android Demo | ||
|---|---|---|---|
| language_tabs |
|
||
| toc_footers |
|
||
| includes |
|
||
| layout | custom_layout |
Quick proof-of-concept of Android vs Java samples
These should be highlighted properly:
System.out.println("I am Java!");System.out.println("Android wins!");
thanks Max for your swift respond & solution.
I followed steps given & my problem fixed.