EmEditor (text editor) Forum Index Questions and Answers about EmEditor Core
highlight words | Register To Post |
| Threaded | Newest First | Previous Topic | Next Topic | Bottom |
| Poster | Thread |
|---|---|
| shx | Posted on: 11/17/2010 3:27 pm |
Just can't stay away ![]() ![]() Joined: 2/18/2009 From: Posts: 77 |
highlight words In terms of highlighting
strings enclosed by quotation marks takes precedence over highlighted words. So if a highlighted words is surrounded by quotes it will loose the look of a highlighted word. Is there anyway to keep the highlighted words even if they are surrounded by quotes? thanks Steven
|
| Yutaka | Posted on: 11/17/2010 7:29 pm |
Webmaster ![]() ![]() Joined: 9/28/2006 From: Redmond Posts: 2398 |
Re: highlight words Steven,
The only way I can think of is to disable the highlight of quoted strings. Thanks,
|
| CrashNBurn | Posted on: 11/17/2010 10:29 pm |
Just can't stay away ![]() ![]() Joined: 4/8/2010 From: Posts: 130 |
Re: highlight words I would think a custom field, for blocking quote hilighting might work.
Quote: Don't consider quotes a string (when matches): Otherwise you have to disable quote hilighting. There's also a bit of a bug in that regard, when you have a custom highlighter and do something like: RegExMatch(Foo, "\"test\"") EmEditor thinks "\" is the start and end of a string, and \"" is the start/end of a string. Possibly, as well: Quote: Ignore Escaped quotes: \ |
| shx | Posted on: 11/18/2010 5:21 am |
Just can't stay away ![]() ![]() Joined: 2/18/2009 From: Posts: 77 |
Re: highlight words Quote:
The only way I can think of is to disable the highlight of quoted strings
|
| shx | Posted on: 11/18/2010 5:32 am |
Just can't stay away ![]() ![]() Joined: 2/18/2009 From: Posts: 77 |
Re: highlight words Never mind, i see how to disable it.
CrashNburn, thanks for your reply. Can you explain what you mean, i am not sure . What i did was disable quotes and added 2 highlighted regex words \".+?\" and then the other one I am working with. this worked because it seems that it uses the later word to to override the earlier highlight word.
|
| CrashNBurn | Posted on: 11/18/2010 8:58 am |
Just can't stay away ![]() ![]() Joined: 4/8/2010 From: Posts: 130 |
Re: highlight words I was talking about possible new features,
1) Allow a custom regex to be used to indicate when "" quote string hilighting shouldn't be done. 2) Allow a custom input field for notifying EmEditor what leading characters before a quotation-mark should indicate that the quotation-mark is part of a string (is escaped). e.g, RegexMatch(Foo, "This is a \"string\" that has embedded quotes. The string hilighter shouldn't end after 'This is a' as the quote is escaped.") Currently EmEditor only allows you to list a single character as an escape for a string (quote). In autohotkey for instance, I would need two. ` and \ |
| shx | Posted on: 11/18/2010 5:31 pm |
Just can't stay away ![]() ![]() Joined: 2/18/2009 From: Posts: 77 |
Re: highlight words O.K. CrashNBurn.
Thanks for your help
|
| Threaded | Newest First | Previous Topic | Next Topic | Top |
| Register To Post | |




