* Uwe Brauer (2005-05-30) writes:

> Lately I use a  lot the insdljs package  which allow, in  a convenient
> way, to generate pdf documents with javascript. I am thinking of
> writing a insdljs.el style file. 
>
> In one thing I would like to ask for advice. The documents must
> contain a list of javascript functions before \begin{document} in the
> form
> \begin{insDLJS}[HelloWorld]{mydljs}{My Private DLJS}
> function HelloWorld()
> {
>     app.alert("Some text", 3);
> }
> \end{insDLJS}
>
> Now I would like to highlight this function in a appropriate way, say
> the word function appears in yellow, if the } is forgotten the text
> changes color, etc. You can I realize such a task?

If it weren't for a style file I'd suggest mmm-mode.  Other than that
my only idea would be to handle an insDLJS environment like other
verbatim environments.  Examples of how to do this can be found in
style/alltt.el and style/listings.el.

-- 
Ralf


_______________________________________________
auctex-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to