[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX-devel] support.el for javascript via insdljs, fonts etc

From: Ralf Angeli
Subject: Re: [AUCTeX-devel] support.el for javascript via insdljs, fonts etc
Date: Tue, 31 May 2005 10:22:03 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux)

* 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]