H tag coloring in text editor coloring

Let us know what you would like to see in the next version of this software

Moderator: kfury77

Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
  • Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
  • Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
  • Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".
Please note that we DO READ all suggestions, even if a reply is not posted. Thanks!
Post Reply
FrankC
Posts: 126
Joined: Thu Aug 18, 2011 3:28 pm

H tag coloring in text editor coloring

Post by FrankC »

In rendered HTML pages (Preview mode) it is quite easy to find back a certain piece of text if one has used h1 through h6 tags. In source code (Code Editor mode) it is much more difficult, even with those tags. Wouldn't it be nice if we could give the different h tags a different source code color?
mithcd
Posts: 47
Joined: Sun Jul 01, 2012 6:30 pm

Re: H tag coloring in text editor coloring

Post by mithcd »

Hi Frank. Found a good work around on this one already?
When in doubt, use Brute Force Image
FrankC
Posts: 126
Joined: Thu Aug 18, 2011 3:28 pm

Re: H tag coloring in text editor coloring

Post by FrankC »

A sort of. What I do now is enclose the h tags with HTML comment tags, which you can give a distinct (background) color. Like this:

<!-- --><h6>Olympic medals, sorted by country</h6><!-- -->

But I'd still like to be able to give the h tags themselves a (background) color.
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: H tag coloring in text editor coloring

Post by Aivars »

I checked and I didn't find a way to do this easily. There is a kind of workaround but I haven't tested it. The workaround is to make Webuilder "forget" about H1 tag. If you want to try it, open \Program Files\WeBuilder 2011\data\parsers and comment out line containing 'h1' like this:

Code: Select all

//stagname  'h1'          shtmltag  tresword
That will make all h1 tags red (or whatever color you have set for invalid tags).
Blumentals Software Programmer
FrankC
Posts: 126
Joined: Thu Aug 18, 2011 3:28 pm

Re: H tag coloring in text editor coloring

Post by FrankC »

Hey Aivars,

Thanks for looking into it. And in itself it works, you suggestion. However, with enclosure of the h line with comment tags, it stands out more. The reason is that the comment tags are much longer than the h tags. Here's a screenshot so you can see it for yourself: http://prntscr.com/di2yt.

So, if you would be able to create a possibility to give the whole h line a different (background) color, that would be really great.
Post Reply