Community
    • Login

    PHP Lang: Word vs Keyword

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 57 Views 2 Watching
    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.
    • Laurie StearnL Offline
      Laurie Stearn
      last edited by Laurie Stearn

      Following on from this:
      https://community.notepad-plus-plus.org/topic/15983/php-additional-syntax-highlighting
      In comparing an older styler xml with a recent factory generated one, there was in the old:

      WordsStyle name="KEYWORDS"
      

      In the new:

      WordsStyle name="WORD"
      

      The factory WORD is the go, no problem with that, how then did KEYWORDS ever get in there, might it have been a ghostly echo from wayback?
      Edit:
      Also discovered a change with TCL KEYWORD replaced by INSTRUCTION WORD along with others, as intended by the authors. In which case there are no issues. :)

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP Online
        PeterJones @Laurie Stearn
        last edited by

        @Laurie-Stearn ,

        The name in the WordsStyle element is just the text that shows up in Style Configurator. It holds no other internal meaning, and thus can be whatever you want it to be. (The StyleID is what does the mapping, not the name) The default values for the name attribute in the model file try to be meaningful relative to what the syntax highlighter uses that style for, but it’s not always perfect. If there is something that would help you when using the Style Configurator, feel free to edit your theme to use that value instead (but I wouldn’t recommend publishing a theme with edited names, because that would just cause confusion to others).

        1 Reply Last reply Reply Quote 1

        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
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors