Is there a way to change the currently used syntax highlighter?
Hi,
i'm new to this community, JetBrains and PhpStorm. I think that i finally found the PHP IDE that fits my needs, but there's a question that could not be answered by only reading the manual and this discussion group:
- I have some Smarty templates that have a .html file extension.
- The filenames must not be changed (else it would be easy... ;) ).
- In the text editor i used up to now (PSPad) there was the possibility to choose a different highlighter if the current one does not fit.
Can someone tell me if (and how) this is possible in PhpStorm?
--
Greetings,
Bomber
Please sign in to leave a comment.
The only way:
Please note -- this is IDE-wide setting so it will affect ALL projects (unfortunately).
Another aproach (if it is possible from your side) .. is to name your smarty templates a bit differently (e.g. FileName.tpl.html) -- then just try adding *.tpl.html pattern to "Smarty" entry.
Hi Andriy,
thanks for the advices. Renaming is not possible, so i will follow your first suggestion. The IDE-wide setting is not satisfying, but acceptable.
Suggestions for improvement of PhpStorm should be put to the issue tracker, right...?
---
Greetings,
Bomber
Hi,
I'm pretty sure that such ticket is already there -- you are not first one who had the same issue. Please check Issue Tracker and vote for it (or create one if you cannot find it -- it was long time ago when I saw it).
There is another mechanism in PhpStorm (File | Settings | Template Data Languages) but it works differently (lower "templating" level) and cannot be used in your case.
Any news about this? I've some html files, which are smarty templates, too. I cant change this. So it would be nice, if i could enable this for html files, maybe only for the current project. Dont found any ticket about this issue.
http://youtrack.jetbrains.com/issue/IDEABKL-6335
Accordingly to that comment by Drimty Jeremov, they have no plans to implement it for the whole platform -- instead it needs to be somehow implemented in specific IDE (PhpStorm in our case).
I personally do not remember any other tickets in this regard (PhpStorm specific, I mean), so feel free checking existing tickets and submitting new Feature Request ticket if none found on Issue Tracker at http://youtrack.jetbrains.com/issues/WI
Ok, i've create a new ticket fort this:
http://youtrack.jetbrains.com/issue/WI-17010