How to get .inc file to be accepted as a .php for auto syntax highlighting ?
-
Guys,
Notepad++ has been great for editing.
No issues with syntax highlighting for all *.php files.When i open *.inc files , I have to go to
Language -> P -> PHP every time to get syntax highlighting as a PHP file.
As i am only working on php projects right now, i was wondering how to get the *.inc file recognized as a *.php file.
Thanks.
-
if the extension hasn’t been mapped to another language already you can add it via
style configurator->php and add it in user ext. field.Cheers
Claudia -
Seems to be already used, see langs.xml:
<Language name="pascal" ext="pas pp p inc lpr" commentStart="{" commentEnd="}">
-
@chcg - thx for checking :-)
@Marco-Czen if pascal isn’t of any interest for you, remove it and add it to php.Cheers
Claudia -
Hi, i dont seem to have a lang.xml in my Notepad++ folder.
There is however a langs.model.xml file.
Is this the same thing or is there another location for this langs.xml file ?
-
Oops got it - Suppose to edit the file at;
C:\Users<username>\AppData\Roaming\Notepad++
Thanks. DONE. WORKING.
-
Thats ;
C:\Users\username\AppData\Roaming\Notepad++