EmEditor (text editor) Forum Index
   Questions and Answers about EmEditor Core
     Comment recognition
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
SteveH
Posted on: 6/12/2009 2:53 am
Just popping in
Joined: 10/9/2006
From:
Posts: 18
Comment recognition
Is there any way to configure EmEditor to recognise a comment that starts with a specific character in the first position on a line and then continues to a specific end character?

In my case a comment always starts with a 'C' in column 1 and end with the next '$' character and can be on a single line or multiple lines.

If I use a 'C' in the Highlight (2) dialog it will also trigger on a 'C' that lies in the middle of a line.
Yutaka
Posted on: 6/12/2009 8:50 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2423
Re: Comment recognition
Quote:

SteveH wrote:
Is there any way to configure EmEditor to recognise a comment that starts with a specific character in the first position on a line and then continues to a specific end character?

In my case a comment always starts with a 'C' in column 1 and end with the next '$' character and can be on a single line or multiple lines.

If I use a 'C' in the Highlight (2) dialog it will also trigger on a 'C' that lies in the middle of a line.


You can use a regular expression "^C" and check "Regular Expression" for the item you want to highlight. However, you cannot highlight multiple line comment in this way.


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

SteveH
Posted on: 1/18/2010 5:33 am
Just popping in
Joined: 10/9/2006
From:
Posts: 18
Re: Comment recognition
I understand there's no way to highlight muli-line comments of this type at the moment. Any plans to extend the regex matching to cope with this type of format?
Threaded | Newest First Previous Topic | Next Topic | Top


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