EmEditor (text editor) Forum Index
   Questions and Answers about EmEditor Core
     line comment
Register To Post

Threaded | Oldest First Previous Topic | Next Topic | Bottom
Poster Thread
shx
Posted on: 11/18/2010 10:28 am
Just can't stay away
Joined: 2/18/2009
From:
Posts: 77
Re: line comment
Thanks Yutaka and CrashNBurn.

This has been most helpful


----------------
Steven

CrashNBurn
Posted on: 11/18/2010 9:16 am
Just can't stay away
Joined: 4/8/2010
From:
Posts: 130
Re: line comment
I have a couple regex hilighters:
Quote:

Hilight an AHK label,
LABEL:
[A-Za-z_0-9]+:$

Hilight variables, like FOO+=, FOO:=, FOO.=
[A-Za-z0-9_#\[\]@-]+(| |\t)+(\+|\-|\.|:)=[ ]?
Now hilight the .=, :=, etc so it's not the same colour as the variable
(\+|\-|\.|:)=

Hilight variables inside percent signs.
%[a-zA-z0-9#_@$\?\[\[]+%


While you can't specifically call your regex a line-comment as such, you can just choose a text color for your regex that matches what you want for the line-comment.
And do:
Quote:
^\.
Hilight right side, as Yutaka indicated.
Yutaka
Posted on: 11/18/2010 7:47 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2401
Re: line comment
Hi Steven,

No, but you can use Highlight (1) tab of configuration properties, and check "Highlight Right Side" or "Highlight Right All" to show the similar effect.

Thank you,


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

shx
Posted on: 11/18/2010 5:51 am
Just can't stay away
Joined: 2/18/2009
From:
Posts: 77
line comment
can a line comment be a regex expression.

the language i am working in uses a period as a comment but only if there is nothing before it on the line except for spaces.

Thanks

Steven


----------------
Steven

Threaded | Oldest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文