comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: IDL syntax highlighting in other documents
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: IDL syntax highlighting in other documents [message #72160] Thu, 19 August 2010 08:56 Go to next message
mankoff is currently offline  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 #72163 is a reply to message #72160] Thu, 19 August 2010 06:55 Go to previous messageGo to next message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
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/idl/idldoc
Re: IDL syntax highlighting in other documents [message #72257 is a reply to message #72160] Thu, 19 August 2010 10:04 Go to previous message
Michael Galloy is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: How do I plot two images with !P.Multi, while keep the aspect ration reflecting the image size
Next Topic: Workspace command history

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:33:18 PDT 2025

Total time taken to generate the page: 0.00459 seconds