• Login
Community
  • Login

Where is file with automatic syntax highlighting?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
6 Posts 3 Posters 3.5k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P
    Pete Norris
    last edited by Oct 13, 2016, 10:07 PM

    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.php

    Thank you in advance.

    C 1 Reply Last reply Oct 14, 2016, 12:03 AM Reply Quote 0
    • C
      Claudia Frank @Pete Norris
      last edited by Oct 14, 2016, 12:03 AM

      @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

      D 1 Reply Last reply Oct 14, 2016, 5:42 AM Reply Quote 0
      • D
        decoderman @Claudia Frank
        last edited by Oct 14, 2016, 5:42 AM

        @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
        Claudia

        And 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.

        1 Reply Last reply Reply Quote 0
        • P
          Pete Norris
          last edited by Dec 15, 2016, 7:39 PM

          Claudia, decoderman;

          Thanks for responding. I found the Style Configurator for PHP.
          Style Configurator for PHP

          If 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-notepad

          I 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.

          C 1 Reply Last reply Dec 15, 2016, 8:28 PM Reply Quote 0
          • C
            Claudia Frank @Pete Norris
            last edited by Dec 15, 2016, 8:28 PM

            @Pete-Norris

            that is absolutely ok - words defined by user stay in the user-defined keywords.
            Put it in, save&close -> Done

            Cheers
            Claudia

            1 Reply Last reply Reply Quote 0
            • P
              Pete Norris
              last edited by Dec 15, 2016, 10:33 PM

              @Claudia Frank

              Claudia;

              Thanks! :)

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors