EmEditor (text editor) Forum Index
   EmEditor Core Enhancement Suggestions
     Suggestion: Unlimited Highlights
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
zm1234
Posted on: 3/14/2011 2:18 pm
Just popping in
Joined: 3/14/2011
From:
Posts: 1
Suggestion: Unlimited Highlights
I'm trying to re-create the old Allaire Homesite 4 HTML coloring scheme based not on syntax (plain text, tags, attributes etc.) but rather on tag categories (text formatting tags, table tags, form tags, links, images etc.). Choosing different colors for the tags of different purposes makes HTML code look much more structured and easy to navigate.

Unfortunately the text coloring possibilities EmEditor offers are too limited for that task, especially if a HTML code being colored contains also JavaScript and CSS definitions.

This can be solved really easy without considerable UI redesign: just include the ability to add unlimited number of Highlights (more than 10 by default) in the 'Specify Part' list found on the 'Display' tab in the 'Properties for Current Configuration' dialog box. The 'Highlight Word' list on the 'Highlight (1)' tab must be changed accordingly. In macro engine a new array or a function should be introduced, somethig like eeColorHighlight[n], which will extend the functionality of the existing constants eeColorHighlight1, ..., eeColorHighlight10.

Thanks for your attention.
Yutaka
Posted on: 3/14/2011 7:08 pm
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2401
Re: Suggestion: Unlimited Highlights
Hello zm1234,

Thanks for your inputs. I might consider that in future versions.


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

ZUMA-RUS
Posted on: 4/14/2011 12:10 am
Just popping in
Joined: 4/13/2011
From:
Posts: 1
Re: Suggestion: Unlimited Highlights
I think many people will be happy, after the creation of such a function.
CrashNBurn
Posted on: 7/13/2011 11:38 am
Just can't stay away
Joined: 4/8/2010
From:
Posts: 130
Re: Suggestion: Unlimited Highlights
When considering this, consider allowing new "Display" rules.
E.g. many IDE's and Editors allow for setting colors for things like:
Quote:
HTML Tag
HTML Unknown Tag
HTML Attribute
HTML Unknown Attribute
HTML Value
HTML String
HTML Other Inside Tag
HTML Comment
HTML Entity
HTML Element Text

Quote:
PHP Default
PHP Start Tag
PHP Comment
PHP Keyword
PHP String
PHP Simple String
PHP Number
PHP Operator
PHP Variable
PHP String Variable
PHP Complex Variable

If you look at the actual .esy syntax files, EmEditor basically does this, but it doesn't allow you to name the group of words --- if it did then in the GUI one could view them like:
+HTML Tag
    a
    img
    ...
+ HTML attribute
    color
    width
    ....

As opposed to a huge list of unrelated/unsorted words.

Then you could likewise define:
Words (and/or a Regex) for those Specifications.
E.g. 1) Words, AND a fall-back Regex that doesn't match your words(Tags/Attributes).
E.g. 2) Only a Regex.

It would just be really really nice, if we didn't have to try and form a Regex to encapsulate HTML syntax properly
Quote:
<div class="begin">
<?php echo"Some Text Here";
$testVar='<div class="inside">TestVar Text</div>'
?>
<TAG attribute1="Value" attribute2="value">Plain Text
<span class="test">Some Text</span></TAG></div>

With possibly an option to display PHP strings that contain HTML code with the normal HTML tag/attribute coloring - but allow for a modified background.

I'm still not sure how enabling the "HTML Embedded" under [Highlight(2)] / Special Syntax really works.

How I would think it should work, is allow you to define your HTML rules based on Tag/Attribute definitions, etc.
And to allow CSS highlighters to be triggered:
1) inside the <head> where you can define in-line CSS.
2) inside tags when style is indicated <div style="width:100px"
Allow your defined PHP syntax highlighters to be triggered:
1) in between php start tags, e.g. <div><?php echo "foo" ?></div>
Allow your defined Javascript syntax highlighters to be triggered, inside:
Quote:
<script language="javascript" type="text/javascript" defer>
<!--
alert(document.forms[0].elements.length);
// -->

Threaded | Newest First Previous Topic | Next Topic | Top


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