Need highlight the first word of every line.

Syntax highlighting, code folding, brace matching, code indenting, and function list

Need highlight the first word of every line.

Postby haibinpro » Mon Mar 12, 2007 2:07 am

some descript.ion file may have such content
Code: Select all
CABRK.DLL CAB unpacker DLL
CGLPT9X.VXD Parallel port driver for Windows 9x/ME
CGLPTNT.SYS Parallel port driver for Windows NT/2000/XP
 


And I want to highlight these word:"CABRK.DLL CGLPT9X.VXD CGLPTNT.SYS"
that is ,highlight the first word of every line.
is UE be able to do that.
User avatar
haibinpro
Newbie
 
Posts: 2
Joined: Sun Mar 11, 2007 12:00 am

Re: Need highlight the first word of every line.

Postby Mofi » Mon Mar 12, 2007 7:10 am

Ah, a Total Commander user like I. The answer for your question is: no!

Only possible would be to modify the descript.ion file temporarily by inserting a special character normally not used for files and folders at start of every line, for example # and use a wordfile with following definition (+ other not posted here):

/C1"Names"
** #

Or you temporarily enclose the file/folder name in double quotes which would highlight the file/folder name as string with an appropriate simple language definition. Double quotes are used in a descript.ion file automatically if file/folder name contains a space, but it should not be used (or is not allowed, I don't know) for file/folder names without a space.

But highlighting the file/folder names directly is not possible.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4055
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Need highlight the first word of every line.

Postby haibinpro » Mon Mar 12, 2007 8:53 am

I have tested it, and it works with TC "Single word[no space] with double quotes is Ok".

for example:
"gerenwenji" sec
"3d.dxf" test
"test CONFIG.TXT" test 2
User avatar
haibinpro
Newbie
 
Posts: 2
Joined: Sun Mar 11, 2007 12:00 am

Re: Need highlight the first word of every line.

Postby Mofi » Mon Mar 12, 2007 10:37 am

Yes, TC allows manually added double quotes around the file names.

But it removes it automatically when you modify the description for the file in the dialog.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4055
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to Syntax Highlighting