Tags:
create new tag
, view all tags

Back to Plugin Home, Highlighters

Java Language highlighter

If you can't see highlighter code here, please edit this topic. Tags FORMAT just removed by PhantomPlugin from output HTML.

%CODE:DEF{"java"}%
%FORMAT:DEF{"HL_java_comments_javadoc"}%
   REGEXP = (\/\*.*?\*\/)
   REGEXPIGNORECASE = false
   REGEXPMULTILINE = false
   SUBSTITUTION= <font color=\"green\">$1<\/font>
   ALLOWOVERLAP = false
   LOAD = auto
%FORMAT:END%
%FORMAT:DEF{"HL_java_comments_line"}%
   REGEXP = (\/\/.*?)\n
   REGEXPMULTILINE = false
   SUBSTITUTION= <font color=\"green\">$1<\/font>\n
   ALLOWOVERLAP = false
   LOAD = auto
%FORMAT:END%
%FORMAT:DEF{"HL_java_keywords"}%
   REGEXP = \b(abstract|default|if|private|this|boolean|do|implements|protected|throw|break|double|import|public|throws|byte|else|instanceof|return|transient|case|extends|int|short|try|catch|final|interface|static|void|char|finally|long|strictfp|volatile|class|float|native|super|while|const|for|new|switch|continue|goto|package|synchronized)\b
   SUBSTITUTION= <font color=\"blue\">$1<\/font>
   ALLOWOVERLAP = false
   LOAD = auto
%FORMAT:END%

%FORMAT:DEF{"HL_java_strings"}%
   REGEXP = (\".*?\")
   SUBSTITUTION= <font color=\"magenta\">$1<\/font>
   ALLOWOVERLAP = false
   LOAD = auto
%FORMAT:END%

%FORMAT:DEF{"HL_java_numbers"}%
   REGEXP = (\d+(.\d+)?)
   SUBSTITUTION= <font color=\"darkred\">$1<\/font>
   ALLOWOVERLAP = false
   LOAD = auto
%FORMAT:END%

%CODE:END%
-- AlexeyEfimov - 17 Nov 2002
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2002-11-20 - AlexeyEfimov
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.