Perl syntax highlighting

Does Idea have Perl syntax highlighting (like in Jedit, for example) with
or without plugin?
If not, could somebody point me to plugin example for syntax highlighting.

Oleg.

4 comments

You can define custom file types in IDEA. See:

http://www.intellij.org/twiki/bin/view/Main/FileTypeDefinitions

http://www.intellij.com/docs/help/preferences/fileTypes.html


"Oleg" <oleg@oleg.net> wrote in message news:b96bhm$45i$1@is.intellij.net...

Does Idea have Perl syntax highlighting (like in Jedit, for example) with
or without plugin?
If not, could somebody point me to plugin example for syntax highlighting.

>

Oleg.

>


0

Check out IDE Settings --> File Types. From there you can add a Perl file type, register Perl keywords for that file type, and then register an extension (e.g. ".pl") for your Perl file type.

Now, whenever you open a *.pl file, IDEA will render the keywords appropriately.

(Note, however, that CTRL-/ and CTRL-SHIFT-/ don't yet work for custom file types. See SCR #4510 to vote for this feature and/or try Timur Zambalayev's Comment Plugin (http://www.intellij.org/twiki/bin/view/Main/CommentPlugin ))

chris

0

How can I highlight perl variables?
For example, in:
my $test = "aaa";
my and ; is blue, "aaa" is green but $test isn't highlighted.
so question is still open.

BTW, look at http://syntax.jedit.org
They have separate "Syntax Package".

Oleg.

Timur Zambalayev wrote:

You can define custom file types in IDEA. See:

http://www.intellij.org/twiki/bin/view/Main/FileTypeDefinitions

http://www.intellij.com/docs/help/preferences/fileTypes.html


"Oleg" <oleg@oleg.net> wrote in message news:b96bhm$45i$1@is.intellij.net...

>>Does Idea have Perl syntax highlighting (like in Jedit, for example) with
>>or without plugin?
>>If not, could somebody point me to plugin example for syntax highlighting.
>>
>>Oleg.
>>



0

You can't highlight Perl variables.
Also I don't think there's a Perl plugin for IDEA.

How can I highlight perl variables?
For example, in:
my $test = "aaa";
my and ; is blue, "aaa" is green but $test
isn't highlighted.
so question is still open.

BTW, look at http://syntax.jedit.org
They have separate "Syntax Package".

Oleg.

0

Please sign in to leave a comment.