Title: Java hilighting extensions - Java doc hilighting Ref: sub28 Author: Jon Green Date: Sat Mar 20 14:18:09 2004 The Java hilighting may be extended to hilight the following:- - JavaDoc comments - Curly braces {} - TODO comments. The following file adds hilighting for all of the above. Comment out the blocks that are not required. Extract the code body to a file called "myjava.emf" and add this to your private "jasspa" directory which is:- ~.jasspa on UNIX. $APPDATA\jasspa on Windows. ==== myjava.emf start ========================================================= ; -!- emf -!- ; This is part of the JASSPA MicroEmacs macro files ; Copyright (C) 1999-2004 JASSPA (www.jasspa.com) ; See the file me.emf for copying and conditions. ; ; Synopsis: Java doc hilighting and extensions. ; Authors: Jon Green ; !if &and &sin "h" .fhook-java.setup &band .hilight.flags 0x02 ; Create a new javadoc hilighting scheme !if ¬ &exi .hilight.javadoc set-variable .hilight.javadoc &pinc .hilight.next 1 !endif ; Add a hook into the normal Java hilighing. We jump into ; javadoc when we see an opening "/**" . hilight .hilight.java 0x80 "/\\*\\*" .hilight.javadoc .scheme.comment ; Javadoc hilighting starts here 0 hilight .hilight.javadoc 2 50 .scheme.comment ; etc. hilight .hilight.javadoc 0 "&\\w\\w;" .scheme.variable hilight .hilight.javadoc 0 "&\\w\\w\\w;" .scheme.variable hilight .hilight.javadoc 0 "&\\w\\w\\w\\w;" .scheme.variable hilight .hilight.javadoc 0 "&\\w\\w\\w\\w\\w;" .scheme.variable hilight .hilight.javadoc 0 "&\\w\\w\\w\\w\\w;" .scheme.variable hilight .hilight.javadoc 0 "&\\w\\w\\w\\w\\w\\w;" .scheme.variable ; "
..." hilight .hilight.javadoc 4 "
" "" "" .scheme.variable ;