Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: JL on May 16, 2006, 03:48:50 pm

Title: Question: Is there any plug-in to allow Unix shell script syntax highlight?
Post by: JL on May 16, 2006, 03:48:50 pm
Thank you in advance!
Title: Re: Question: Is there any plug-in to allow Unix shell script syntax highlight?
Post by: mandrav on May 16, 2006, 04:04:56 pm
You don't need a plugin, just a new lexer file (http://wiki.codeblocks.org/index.php?title=Creating_a_custom_lexer_for_Code::Blocks_editor).
Title: Re: Question: Is there any plug-in to allow Unix shell script syntax highlight?
Post by: JL on May 16, 2006, 04:23:36 pm
You don't need a plugin, just a new lexer file (http://wiki.codeblocks.org/index.php?title=Creating_a_custom_lexer_for_Code::Blocks_editor).

OK. Does it exist already? Is there any URL it can be downloaded from?

Thank you.
Title: Re: Question: Is there any plug-in to allow Unix shell script syntax highlight?
Post by: thomas on May 16, 2006, 04:48:37 pm
No, but you can create it (see link in above post). An easy way of doing it would be to make a copy of lexer_batch.xml (this one should be close enough), substitute a few keywords, and supply the correct index value.

The index that you will be wanting to use is 62.
Title: Re: Question: Is there any plug-in to allow Unix shell script syntax highlight?
Post by: sethjackson on May 16, 2006, 04:53:21 pm
Hmm maybe this is my next lexer assingment.  :lol: