Menu

Highlight labels in custom language?

2009-06-16
2012-11-13
  • Ken Akerboom

    Ken Akerboom - 2009-06-16

    I'm trying to define a custom language in userDefineLang.xml.  The one thing left is that I'm trying to highlight line labels, e.g. the "ABC123:" in:

    Jump/ABC123:

    ABC123:

    Does anyone have any suggestions?

    Thanks...Ken

     
    • cchris

      cchris - 2009-06-18

      Jump/ and Do/ will work if there is no intervening space. For If/<text>/ABC123, it won't - or it will highlight the whole thing tilll the forst space.

      ABC123: on a line by itself will not get highlighted.

      CChris

       
    • cchris

      cchris - 2009-06-17

      Define a keyword group containing "jump/" and check the Prefix checkbox. Using the UDL is faster and more reliable imho.

      CChris

       
    • Ken Akerboom

      Ken Akerboom - 2009-06-17

      I am using the UDL dialog, if that's what you're talking about.
      Sorry if I mis-stated what I was doing.

      Would your suggestion highlight the "ABC123:" on the line on its own?

      Also, it's more than just the Jump/ command, there's also "Do/ABC123:,<random text here>", "If/<random text here>,ABC123:, ABC124:, ABC125:" and other constructs.

      Thanks for the reply...Ken

       
MongoDB Logo MongoDB