[antlr-interest] using antlr to create HTML
Arnar Birgisson
arnarb at oddi.is
Sun Feb 1 10:07:54 PST 2004
Hi there,
This is possible using only the lexer. I have a _very_ quick hack of the
Java lexer found at www.antlr.org which gives reasonable results. Some
sample outputs can be seen at
http://www.hi.is/~arnarbi/antlr-highlight/test.html and
http://www.hi.is/~arnarbi/antlr-highlight/test2.html
If anyone is interested, this hack is at
http://www.hi.is/~arnarbi/antlr-highlight/, the files you want are
highlight.g and highlight.java.
Arnar
> -----Original Message-----
> From: butchjunk [mailto:butchjunk at yahoo.com]
> Sent: 31. janĂșar 2004 16:17
> To: antlr-interest at yahoogroups.com
> Subject: [antlr-interest] using antlr to create HTML
>
>
> what i basically want is to read in a java file and create html file
> of code but depending on of what token is read, it sets different
> colours i.e. set all the word "class" to red etc
> the ultimate goal is to make it easier for the user to read java code
> highlighting important keywords with colours. The HTML will be
> displayed in a Jpane.
>
> is it possible? and how differicult is it to do?
>
> thanks
>
>
>
>
>
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/antlr-interest/
>
> To unsubscribe
> from this group, send an email to:
> antlr-interest-unsubscribe at yahoogroups.com
>
> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
>
>
>
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list