Where is file with automatic syntax highlighting?
-
Hello Notepad++ Forum!
Question: Where do I find the word file that has built-in function, operator, etc. names for PHP in bold in the color blue?
The operators if, and, or plus many of the function names are displayed in bold in the color blue.
I want to add bind_param to the file so it is also displayed in bold in the color blue.
http://php.net/manual/en/mysqli-stmt.bind-param.phpThank you in advance.
-
@Pete-Norris
I think you are looking for langs.xml.
But you can only add keywords.
Preferred way is to use the Settings->Style Configurator window to change this.Cheers
Claudia -
@Claudia-Frank said:
@Pete-Norris
I think you are looking for langs.xml.
But you can only add keywords.
Preferred way is to use the Settings->Style Configurator window to change this.Cheers
ClaudiaAnd it works quite well IF you know what rule triggers the quirky behavior.
I find that I have to do it with the trial and error method to find the offending one. -
Claudia, decoderman;
Thanks for responding. I found the Style Configurator for PHP.
Style Configurator for PHPIf I click on the “+” sign between the “Default keywords” and the “User-defined keywords” nothing happens. bind_param stays in the User defined keywords box.
I can click the enter key and it won’t add bind_param.
I found instructions on stackoverflow (1st link points user to the 2nd link)
http://stackoverflow.com/questions/17867382/notepad-highlight-custom-keywords
http://stackoverflow.com/questions/6430884/adding-keywords-to-ruby-syntax-highlighting-for-notepadI can’t remember but I may have tinkered with langs.xml file. That could be the reason I can’t get it to work.
Thanks again.
-
that is absolutely ok - words defined by user stay in the user-defined keywords.
Put it in, save&close -> Done
Cheers
Claudia -
@Claudia Frank
Claudia;
Thanks! :)
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