Indent and fold only when first word in a line

Indent and fold only when first word in a line

1
NewbieNewbie
1

    Dec 14, 2005#1

    Hi, I have couple of questions about this:

    1) How can define highlight, brace, etc. to only matter if its the first word in the line (there could be spaces before it).
    For example with file:

    Code: Select all

    volume name1
     share name2
       someother line share line
     exit
    exit
    I would like volume and share to be open indent and fold keywords, but I don't want the "line share line" to interfere.

    Also if I have an IP address how can I highlight the whole thing? Right now only the first octet is highlighed.

    and lastly if I have a keyword with - in it , ie some-name, how can I highlight it? Right now only the first part matches.

    thank you!

    6,675585
    Grand MasterGrand Master
    6,675585

      Dec 14, 2005#2

      1) Short answer: not possible.

      2) Highlighting IP addresses and words with a '-': Remove '.' and '-' from the list of word delimiter characters /Delimiters = ...
      Best regards from an UC/UE/UES for Windows user from Austria