Re: Source code highlighting and indentation

2009-05-04 Thread Manveru
2009/5/3 Vito De Tullio zak.mc.kra...@libero.it:
 rgheck wrote:

 I have used the listings package. It probably knows ada. (I haven't
 used it with lyx though, just with latex.)
 There is support for listings in LyX. Use the InsertProgram Listing
 environment. Ada is available.

 as an alternative to the listings package, I suggest texments_: may be not
 as integrate as the listings in LyX, but I prefer a little more colorful
 approach to the source highlights.

 .. _texments: http://www.ctan.org/tex-archive/macros/latex/contrib/texments/

and it seems to be made by polish programmer, yeah :-)

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl


Re: Source code highlighting and indentation

2009-05-04 Thread Manveru
2009/5/3 Vito De Tullio zak.mc.kra...@libero.it:
 rgheck wrote:

 I have used the listings package. It probably knows ada. (I haven't
 used it with lyx though, just with latex.)
 There is support for listings in LyX. Use the InsertProgram Listing
 environment. Ada is available.

 as an alternative to the listings package, I suggest texments_: may be not
 as integrate as the listings in LyX, but I prefer a little more colorful
 approach to the source highlights.

 .. _texments: http://www.ctan.org/tex-archive/macros/latex/contrib/texments/

and it seems to be made by polish programmer, yeah :-)

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl


Re: Source code highlighting and indentation

2009-05-04 Thread Manveru
2009/5/3 Vito De Tullio :
> rgheck wrote:
>
>>> I have used the "listings" package. It probably knows ada. (I haven't
>>> used it with lyx though, just with latex.)
>> There is support for listings in LyX. Use the Insert>Program Listing
>> environment. Ada is available.
>
> as an alternative to the listings package, I suggest texments_: may be not
> as integrate as the listings in LyX, but I prefer a little more "colorful"
> approach to the source highlights.
>
> .. _texments: http://www.ctan.org/tex-archive/macros/latex/contrib/texments/

and it seems to be made by polish programmer, yeah :-)

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl


Re: Source code highlighting and indentation

2009-05-03 Thread Vito De Tullio
rgheck wrote:

 I have used the listings package. It probably knows ada. (I haven't
 used it with lyx though, just with latex.)
 There is support for listings in LyX. Use the InsertProgram Listing
 environment. Ada is available.

as an alternative to the listings package, I suggest texments_: may be not
as integrate as the listings in LyX, but I prefer a little more colorful
approach to the source highlights.

.. _texments: http://www.ctan.org/tex-archive/macros/latex/contrib/texments/

-- 
By ZeD



Re: Source code highlighting and indentation

2009-05-03 Thread Vito De Tullio
rgheck wrote:

 I have used the listings package. It probably knows ada. (I haven't
 used it with lyx though, just with latex.)
 There is support for listings in LyX. Use the InsertProgram Listing
 environment. Ada is available.

as an alternative to the listings package, I suggest texments_: may be not
as integrate as the listings in LyX, but I prefer a little more colorful
approach to the source highlights.

.. _texments: http://www.ctan.org/tex-archive/macros/latex/contrib/texments/

-- 
By ZeD



Re: Source code highlighting and indentation

2009-05-03 Thread Vito De Tullio
rgheck wrote:

>> I have used the "listings" package. It probably knows ada. (I haven't
>> used it with lyx though, just with latex.)
> There is support for listings in LyX. Use the Insert>Program Listing
> environment. Ada is available.

as an alternative to the listings package, I suggest texments_: may be not
as integrate as the listings in LyX, but I prefer a little more "colorful"
approach to the source highlights.

.. _texments: http://www.ctan.org/tex-archive/macros/latex/contrib/texments/

-- 
By ZeD



Source code highlighting and indentation

2009-05-02 Thread Thomas Løcke
Hey again,

Now that I've decided on using LyX for my manual, I've started
wondering how to go about getting the source code examples highlighted
and indented. Most of the code examples will be in Ada, with a little
bit of C here and there.

Is there a way to automate this, or should I just do it manually?

Sincerely,
Thomas


Re: Source code highlighting and indentation

2009-05-02 Thread Rich Shepard

On Sat, 2 May 2009, Thomas L?cke wrote:


Now that I've decided on using LyX for my manual, I've started wondering
how to go about getting the source code examples highlighted and indented.
Most of the code examples will be in Ada, with a little bit of C here and
there.


Thomas,

  There is a 'code' environment that typesets exactly what you enter. I
found that I needed to manually format text in this environment so it
appeared as I wanted without running off the right margin.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Source code highlighting and indentation

2009-05-02 Thread Jeremy C. Reed
I have used the listings package. It probably knows ada. (I haven't used 
it with lyx though, just with latex.)


Re: Source code highlighting and indentation

2009-05-02 Thread rgheck

Jeremy C. Reed wrote:
I have used the listings package. It probably knows ada. (I haven't used 
it with lyx though, just with latex.)
  
There is support for listings in LyX. Use the InsertProgram Listing 
environment. Ada is available.


rh



Re: Source code highlighting and indentation

2009-05-02 Thread Thomas Løcke
On Sat, May 2, 2009 at 9:31 PM, rgheck rgh...@bobjweil.com wrote:
 Jeremy C. Reed wrote:

 I have used the listings package. It probably knows ada. (I haven't used
 it with lyx though, just with latex.)


 There is support for listings in LyX. Use the InsertProgram Listing
 environment. Ada is available.

Thank you!

This works a charm. The syntax highlighting is very good, and it
supports Ada 2005. It doesn't do proper indentation though, but it's
very easy for me to do that manually.

The more I learn about LyX, the more amazed I get. What an awesome app!

:o)
Thomas


Re: Source code highlighting and indentation

2009-05-02 Thread rgheck

Thomas Løcke wrote:

This works a charm. The syntax highlighting is very good, and it
supports Ada 2005. It doesn't do proper indentation though, but it's
very easy for me to do that manually.

  

Check all the listings options:
http://www.ctan.org/get/macros/latex/contrib/listings/listings.pdf
There may be one for that, though maybe not. You can enter these 
manually in the listings dialog.



The more I learn about LyX, the more amazed I get. What an awesome app!

  
A lot of the magic is LaTeX, but LyX does make it easier to cast the 
write spells.


rh



Source code highlighting and indentation

2009-05-02 Thread Thomas Løcke
Hey again,

Now that I've decided on using LyX for my manual, I've started
wondering how to go about getting the source code examples highlighted
and indented. Most of the code examples will be in Ada, with a little
bit of C here and there.

Is there a way to automate this, or should I just do it manually?

Sincerely,
Thomas


Re: Source code highlighting and indentation

2009-05-02 Thread Rich Shepard

On Sat, 2 May 2009, Thomas L?cke wrote:


Now that I've decided on using LyX for my manual, I've started wondering
how to go about getting the source code examples highlighted and indented.
Most of the code examples will be in Ada, with a little bit of C here and
there.


Thomas,

  There is a 'code' environment that typesets exactly what you enter. I
found that I needed to manually format text in this environment so it
appeared as I wanted without running off the right margin.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Re: Source code highlighting and indentation

2009-05-02 Thread Jeremy C. Reed
I have used the listings package. It probably knows ada. (I haven't used 
it with lyx though, just with latex.)


Re: Source code highlighting and indentation

2009-05-02 Thread rgheck

Jeremy C. Reed wrote:
I have used the listings package. It probably knows ada. (I haven't used 
it with lyx though, just with latex.)
  
There is support for listings in LyX. Use the InsertProgram Listing 
environment. Ada is available.


rh



Re: Source code highlighting and indentation

2009-05-02 Thread Thomas Løcke
On Sat, May 2, 2009 at 9:31 PM, rgheck rgh...@bobjweil.com wrote:
 Jeremy C. Reed wrote:

 I have used the listings package. It probably knows ada. (I haven't used
 it with lyx though, just with latex.)


 There is support for listings in LyX. Use the InsertProgram Listing
 environment. Ada is available.

Thank you!

This works a charm. The syntax highlighting is very good, and it
supports Ada 2005. It doesn't do proper indentation though, but it's
very easy for me to do that manually.

The more I learn about LyX, the more amazed I get. What an awesome app!

:o)
Thomas


Re: Source code highlighting and indentation

2009-05-02 Thread rgheck

Thomas Løcke wrote:

This works a charm. The syntax highlighting is very good, and it
supports Ada 2005. It doesn't do proper indentation though, but it's
very easy for me to do that manually.

  

Check all the listings options:
http://www.ctan.org/get/macros/latex/contrib/listings/listings.pdf
There may be one for that, though maybe not. You can enter these 
manually in the listings dialog.



The more I learn about LyX, the more amazed I get. What an awesome app!

  
A lot of the magic is LaTeX, but LyX does make it easier to cast the 
write spells.


rh



Source code highlighting and indentation

2009-05-02 Thread Thomas Løcke
Hey again,

Now that I've decided on using LyX for my manual, I've started
wondering how to go about getting the source code examples highlighted
and indented. Most of the code examples will be in Ada, with a little
bit of C here and there.

Is there a way to "automate" this, or should I just do it manually?

Sincerely,
Thomas


Re: Source code highlighting and indentation

2009-05-02 Thread Rich Shepard

On Sat, 2 May 2009, Thomas L?cke wrote:


Now that I've decided on using LyX for my manual, I've started wondering
how to go about getting the source code examples highlighted and indented.
Most of the code examples will be in Ada, with a little bit of C here and
there.


Thomas,

  There is a 'code' environment that typesets exactly what you enter. I
found that I needed to manually format text in this environment so it
appeared as I wanted without running off the right margin.

Rich

--
Richard B. Shepard, Ph.D.   |  IntegrityCredibility
Applied Ecosystem Services, Inc.|Innovation
 Voice: 503-667-4517  Fax: 503-667-8863


Re: Source code highlighting and indentation

2009-05-02 Thread Jeremy C. Reed
I have used the "listings" package. It probably knows ada. (I haven't used 
it with lyx though, just with latex.)


Re: Source code highlighting and indentation

2009-05-02 Thread rgheck

Jeremy C. Reed wrote:
I have used the "listings" package. It probably knows ada. (I haven't used 
it with lyx though, just with latex.)
  
There is support for listings in LyX. Use the Insert>Program Listing 
environment. Ada is available.


rh



Re: Source code highlighting and indentation

2009-05-02 Thread Thomas Løcke
On Sat, May 2, 2009 at 9:31 PM, rgheck  wrote:
> Jeremy C. Reed wrote:
>>
>> I have used the "listings" package. It probably knows ada. (I haven't used
>> it with lyx though, just with latex.)
>>
>
> There is support for listings in LyX. Use the Insert>Program Listing
> environment. Ada is available.

Thank you!

This works a charm. The syntax highlighting is very good, and it
supports Ada 2005. It doesn't do proper indentation though, but it's
very easy for me to do that manually.

The more I learn about LyX, the more amazed I get. What an awesome app!

:o)
Thomas


Re: Source code highlighting and indentation

2009-05-02 Thread rgheck

Thomas Løcke wrote:

This works a charm. The syntax highlighting is very good, and it
supports Ada 2005. It doesn't do proper indentation though, but it's
very easy for me to do that manually.

  

Check all the listings options:
http://www.ctan.org/get/macros/latex/contrib/listings/listings.pdf
There may be one for that, though maybe not. You can enter these 
manually in the listings dialog.



The more I learn about LyX, the more amazed I get. What an awesome app!

  
A lot of the magic is LaTeX, but LyX does make it easier to cast the 
write spells.


rh