[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-nano] Syntax Highligh Question

From: Robert McLay
Subject: [Help-nano] Syntax Highligh Question
Date: Thu, 24 Dec 2009 16:01:31 +0000 (GMT)

 Hi Guys,

 I am trying to compile a syntax highlighting file for Cisco router
 config files.  I am looking to highlight any hex code after the
 phrase " 7 " or " 5 " which is a hex password.  At present I am
 using the lines:

 color yellow start=" 7 [^\?]" end="[\^*(0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F)]"
 color yellow start=" 5 [^\?]" end="[\^*(0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F)]"

 Which I know to be wrong, as it will only highlight part of the
 string.  I am also aware this is probably not the best method of
 achieving my goal.  Can anyone suggest a better method...?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]