Re: IDL syntax highlighting in other documents [message #72160] |
Thu, 19 August 2010 08:56  |
mankoff
Messages: 131 Registered: March 2004
|
Senior Member |
|
|
On Aug 19, 9:55 am, Paulo Penteado <pp.pente...@gmail.com> wrote:
> On Aug 19, 10:39 am, Robin Wilson <ro...@rtwilson.com> wrote:
>
>> I'm writing a lot of IDL code for my university research projects and my
>> PhD thesis and therefore want to include some of the code in other
>> documents. I'm writing these documents mainly in LaTeX and HTML. I have
>> found a number of utilities that will perform syntax highlighting on
>> code for me (such as Pygments -http://pygments.org/) but none of them
>> seem to support IDL.
>
>> Does anyone know of anything like this that does support IDL? I was
>> thinking that I might have to write one, but I'm not sure if my skills
>> are up to that!
>
> See IDLDoc. It makes HTML and LaTeX, and the templates can be altered
> if you need:
>
> http://idldoc.idldev.com/http://michaelgalloy.com/category/i dl/idldoc
I'd go with the above, since it is in active development and supported
by an active contributor to this group. But just for completeness
sake,
The LaTeX listing package seems to support IDL
http://www.ctan.org/tex-archive/macros/latex/contrib/listing s/
a2ps will syntax highlight IDL, but I'm not sure how to get the output
into LaTeX. Perhaps you could then include the PS or PDFs in your
LaTeX source.
-k.
|
|
|
|
Re: IDL syntax highlighting in other documents [message #72257 is a reply to message #72160] |
Thu, 19 August 2010 10:04  |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
On 8/19/10 9:56 AM, mankoff wrote:
> On Aug 19, 9:55 am, Paulo Penteado<pp.pente...@gmail.com> wrote:
>> On Aug 19, 10:39 am, Robin Wilson<ro...@rtwilson.com> wrote:
>>
>>> I'm writing a lot of IDL code for my university research projects and my
>>> PhD thesis and therefore want to include some of the code in other
>>> documents. I'm writing these documents mainly in LaTeX and HTML. I have
>>> found a number of utilities that will perform syntax highlighting on
>>> code for me (such as Pygments -http://pygments.org/) but none of them
>>> seem to support IDL.
>>
>>> Does anyone know of anything like this that does support IDL? I was
>>> thinking that I might have to write one, but I'm not sure if my skills
>>> are up to that!
>>
>> See IDLDoc. It makes HTML and LaTeX, and the templates can be altered
>> if you need:
>>
>> http://idldoc.idldev.com/http://michaelgalloy.com/category/i dl/idldoc
>
> I'd go with the above, since it is in active development and supported
> by an active contributor to this group. But just for completeness
> sake,
>
> The LaTeX listing package seems to support IDL
> http://www.ctan.org/tex-archive/macros/latex/contrib/listing s/
>
> a2ps will syntax highlight IDL, but I'm not sure how to get the output
> into LaTeX. Perhaps you could then include the PS or PDFs in your
> LaTeX source.
>
> -k.
The highlighting in IDLdoc is quite simple. I recommend Highlight for
better results:
http://www.andre-simon.de/
Here is a short article on using it for IDL:
http://michaelgalloy.com/2009/09/24/syntax-highlighting-idl- code.html
There is an --tex option to produce TeX output, the default is HTML.
Mike
--
www.michaelgalloy.com
Research Mathematician
Tech-X Corporation
|
|
|