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++
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login