Tapatalk

About the syntax highlighting of CSS sheets

About the syntax highlighting of CSS sheets

6
NewbieNewbie
6

    Nov 07, 2005#1

    Hi

    I would set the syntax highlighting of the CSS sheets

    I have this code

    Code: Select all

    .unnamed1 {
    	font-family: "Courier New", Courier, mono;
    	font-size: 14px;
    	font-weight: bolder;
    	padding: 1px;
    	border: 1px dotted #3366CC; 
    }
    I would that "unnamed1" (or whichever other string conteined between . and { ) is written in pink bold

    The wordfile.txt:

    Code: Select all

    /L11"CSS" CSS_LANG Nocase Noquote Block Comment On = /* Block Comment Off = */ File Extensions = CSS
    /Delimiters = ,.:;{ }
    /C1
    A ABOVE ACTIVE ADDRESS APPLET ARRAY AREA
    ....  .....  .....  .....   .....
    /C2
    background background-attachment background-color background-image
    ....  ....  .....  .....   ......
    /C3 
    aqua auto
    .... ........ ..... ......
    /C4     (At C4 is associeted the pink color)
    , 
    . 
    : 
    ; 
    { 
    }
    What I must modify of the wordfile.txt to set the syntax hightlighting above written up?
    Can you help me?

    6,685587
    Grand MasterGrand Master
    6,685587

      Nov 07, 2005#2

      Simple solution with substring - see red characters:

      /L11"CSS" CSS_LANG Nocase Noquote Block Comment On = /* Block Comment Off = */ File Extensions = CSS
      /Delimiters = ,.:;{ }()
      /C1
      A ABOVE ACTIVE ADDRESS APPLET ARRAY AREA
      .... ..... ..... ..... .....
      /C2
      background background-attachment background-color background-image
      .... .... ..... ..... ......
      /C3
      aqua auto
      .... ........ ..... ......
      /C4 (At C4 is associeted the pink color)
      ,
      ** .
      :
      ;
      {
      }

      But this will also highlight url(borders.css);
      Best regards from an UC/UE/UES for Windows user from Austria

      6
      NewbieNewbie
      6

        Nov 07, 2005#3

        It works.
        Thanks :D

        Another thing:

        is possible insert a regular expression after /Cn ?
        That is: is possible indicate with a regular expression that it must highlight?

        6,685587
        Grand MasterGrand Master
        6,685587

          Nov 08, 2005#4

          As often written and discussed here a regular expression in UltraEdit style can only be used for the function string and nothing else.
          Best regards from an UC/UE/UES for Windows user from Austria