syntax highlighting for inline source code

2006-08-18 Thread John Pye
Hi all In some Latex documentation for various things, I have seen source code snippets inserted that show up nicely with syntax highlighting. Is there any way I can do that with LyX? So for example, let's say I write an algorithm using some python code. I want to put the code into a report, and

Re: syntax highlighting for inline source code

2006-08-18 Thread Helge Hafting
John Pye wrote: Hi all In some Latex documentation for various things, I have seen source code snippets inserted that show up nicely with syntax highlighting. Is there any way I can do that with LyX? So for example, let's say I write an algorithm using some python code. I want to put the code

Re: syntax highlighting for inline source code

2006-08-18 Thread Gunnar
Add the following to .lyx/externaltemplates (modify accordingly to python, this is C++ (cpp) Template CppKod GuiName [C++ $$Basename] HelpText Snyggar till C++ kod HelpTextEnd InputFormat cpp FileFilter *.{cpp,h,hpp,c} ViewCommand

syntax highlighting for inline source code

2006-08-18 Thread John Pye
Hi all In some Latex documentation for various things, I have seen source code snippets inserted that show up nicely with syntax highlighting. Is there any way I can do that with LyX? So for example, let's say I write an algorithm using some python code. I want to put the code into a report, and

Re: syntax highlighting for inline source code

2006-08-18 Thread Helge Hafting
John Pye wrote: Hi all In some Latex documentation for various things, I have seen source code snippets inserted that show up nicely with syntax highlighting. Is there any way I can do that with LyX? So for example, let's say I write an algorithm using some python code. I want to put the code

Re: syntax highlighting for inline source code

2006-08-18 Thread Gunnar
Add the following to .lyx/externaltemplates (modify accordingly to python, this is C++ (cpp) Template CppKod GuiName [C++ $$Basename] HelpText Snyggar till C++ kod HelpTextEnd InputFormat cpp FileFilter *.{cpp,h,hpp,c} ViewCommand

syntax highlighting for inline source code

2006-08-18 Thread John Pye
Hi all In some Latex documentation for various things, I have seen source code snippets inserted that show up nicely with syntax highlighting. Is there any way I can do that with LyX? So for example, let's say I write an algorithm using some python code. I want to put the code into a report, and

Re: syntax highlighting for inline source code

2006-08-18 Thread Helge Hafting
John Pye wrote: Hi all In some Latex documentation for various things, I have seen source code snippets inserted that show up nicely with syntax highlighting. Is there any way I can do that with LyX? So for example, let's say I write an algorithm using some python code. I want to put the code

Re: syntax highlighting for inline source code

2006-08-18 Thread Gunnar
Add the following to .lyx/externaltemplates (modify accordingly to python, this is C++ (cpp) Template CppKod GuiName "[C++ $$Basename]" HelpText Snyggar till C++ kod HelpTextEnd InputFormat cpp FileFilter "*.{cpp,h,hpp,c}"