How to create custom code colours in HTML ?

Hi - I am using the templating language with Expression Engine CMS . I want the curly braces and content of those braces to be bright red. However, I can not see a way of stipulating that color.

The avaulable settings ( Editor -> colors & fonts -> HTML ) only allows you to change the color of the given Storm code / tag.  

I need to create a  custom color for a custom tag thus { exp:channel:entries channel="news" limit="3" status="Homepage Secondary" }


can I do that ?  How ?


Many Thanks !!

3 comments
Comment actions Permalink

Hi vincent,

Yes and No.

No -- you cannot create such new style using existing functionality.

But yes -- it can be done if you write your own plugin (which, I think, is not an easy task). I'm just not sure if such plugin can add new style to already defined/supported language (in comparison when creating it for your own file type/language).

P.S.
I guess this is the right one: http://youtrack.jetbrains.com/issue/WI-2894

0
Comment actions Permalink

Thanks Andrij

I have an idea :   In Dreamweaver you can create "code snippets" which are little bits of code you regularly use and can apply with a user defined key stroke. so, <br /> or print_r or how ever long short you want.

Can I create such a thing in storm - I have looked  arround adn have not found it yet.

If so, then I perhaps I can apply a color to my 'snippet' even if it is juts a highlight ?

thanks Vince

0
Comment actions Permalink

I have an idea :   In Dreamweaver you can create "code snippets" which are little bits of code you regularly use and can apply with a user defined key stroke. so, <br /> or print_r or how ever long short you want.

Can I create such a thing in storm - I have looked  arround adn have not found it yet.

"Settings | Live Templates" I guess?

If so, then I perhaps I can apply a color to my 'snippet' even if it is juts a highlight ?

?? Sorry, no idea what you are talking about here. I'm not using such functionality in Dreamweaver CS5 so cannot "translate" it into PhpStorm equivalent.

0

Please sign in to leave a comment.