Menu

User Defined Language-Need space for keyword?

2008-01-08
2012-11-13
  • Nobody/Anonymous

    Hi, I have defined my own user defined language, and it mostly works quite well, but it seems I need a space after the keyword to make it highlight.

    I.e.
    if (min < 10) will highlight "if" whereas
    if(min < 10) will not highlight "if"

    Is there a simple solution to this?

    Thanks for your help.

    Jostein

     
    • Nobody/Anonymous

      changing Keyword also to KB, v, V, to hightlight my numbers,
      but now highlights all Initial letter v, V !?

      http://s4.directupload.net/file/d/1326/oe74ja7h_gif.htm

       
    • Nobody/Anonymous

      I would advise you to simply always use the space, as this will make your code more readable and may be of help later for any search/replace operation.

       
    • Nobody/Anonymous

      same as here, i would like to highligt numbers in normal Textfiles and only with space runs!
      http://s4.directupload.net/file/d/1301/fxrt8lqz_jpg.htm

       
    • Don HO

      Don HO - 2008-01-08

      Just make '(' and ')' as operator will help.

      Don

       
    • Nobody/Anonymous

      And by the number highlight?

       
    • Nobody/Anonymous

      @Don

      Brilliant, that did the trick, thanks!!

      Jostein

       
    • Nobody/Anonymous

      any suggestions to highlight numbers in the right way?

       
    • Jasper

      Jasper - 2008-01-11

      Did you try doing the very same thing? (possibly also symbolizing the comma)