• Login
Community
  • Login

Problem with PHP7 MySQL syntax highlight

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
php7highlightingsyntaxmysql
4 Posts 2 Posters 4.1k 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.
  • K
    Koppány Attila
    last edited by Koppány Attila Mar 25, 2016, 10:57 AM Mar 25, 2016, 10:56 AM

    Hi there,

    I’m using N++ latest version for editing PHP7 files. My problem is with the PHP7 MySQL command’s syntax as those commands are not highlighted. For example:

    • mysql_connect
    • mysql_query
    • mysql_close etc.

    these commands are highlighted, but the new PHP7 commands, e.g.:

    • mysqli_connect
    • mysqli_query
    • mysqli_close etc.

    these commands are not highlighted.

    If possible, how can I switch the syntax highlight on for these commands (and others), too?

    Thanks for your help.

    Regards,
    Attila

    1 Reply Last reply Reply Quote 0
    • K
      Koppány Attila
      last edited by Mar 25, 2016, 11:36 AM

      Hi there,

      Something has been missed…

      It would be also a good solution if I could import a PHP syntax highlight definition into N++ (then I’d append the PHP7 MySQL commands I’d use) but unfortunately I hadn’t found any XML file (UDL) to do that.

      Thanks.

      C 1 Reply Last reply Mar 25, 2016, 11:13 PM Reply Quote 0
      • C
        Claudia Frank @Koppány Attila
        last edited by Mar 25, 2016, 11:13 PM

        Hello @Koppány-Attila,

        Settings->Style Configurator->Language->php

        here you can customize the highlighting and if you click on word in Style two new boxes appear
        default keywords and user-defined keywords.
        Here ou can add your mysqli … words.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 1
        • K
          Koppány Attila
          last edited by Mar 26, 2016, 8:59 PM

          Hi Claudia,

          that’s just what I need! Thanks for your help, now it’s done and perfect!
          Have a nice day / evening!

          Attila

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