weBuilder 2015 MulticolorHTML

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.

  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;

weBuilder 2015 MulticolorHTML

Postby tomy300 » Fri Dec 19, 2014 2:13 am

Hi

it's seem that I can change the dom color, like <form> there's an advanced option that allow more... but I don't understant they way it works.

i would like to change color of <form> but the tag in a form could be differant like <form id= or name= or class= could be differant color

can I change that in advanced option ????

if I look at MulticolorHTML.xs

// form
snormal <form shtmlFO thtmlform
snormal <input shtmlFO thtmlform
shtmlFO [^>^\"]* shtmlFO thtmlform
shtmlFO > snormal thtmlform
snormal </form> snormal thtmlform

if I add this it don't work?
snormal id= shtmlFO thtmlform
snormal name= shtmlFO thtmlform
snormal class= shtmlFO thtmlform


if I could change that I would upgrade to 2015 right away.


thanks
tomy300
 
Posts: 10
Joined: Sat Nov 10, 2012 7:12 am

Re: weBuilder 2015 MulticolorHTML

Postby Aivars » Fri Dec 19, 2014 3:56 pm

What exactly are you trying to achieve, change colors of class and id attributes? Everywhere or only in <form> tag? Same color or different? Or do you want form tags that contain class or id attributes to be colored differently than the ones that don't?
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2456
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: weBuilder 2015 MulticolorHTML

Postby tomy300 » Sat Dec 20, 2014 7:41 am

Hi

like I said the tag in a dom

like class, id , name , action etc.

just have a option to change them for a <form> or anyother dom element would be very cool, for for my point, the <form> is the most important.
but if I could change color for those tag and having the same color for every dom it would be nice.

for now I just can change the <form></form> and it's alright because I can find it fast in big html file... but having possibility to change the name tag color would be very nice.

I don't know if it's possible right now to change it in advanced option.... and if yes I would appreciate to know how to do this.
tomy300
 
Posts: 10
Joined: Sat Nov 10, 2012 7:12 am

Re: weBuilder 2015 MulticolorHTML

Postby Aivars » Sat Dec 20, 2014 11:53 am

Let me get this completely clear - you want to change color of attributes, not tags, right? And not all attributes but only some of them like class, id, name etc?
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2456
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: weBuilder 2015 MulticolorHTML

Postby tomy300 » Sat Dec 20, 2014 9:08 pm

yes exacly I don't know if it's possible with the current version.
tomy300
 
Posts: 10
Joined: Sat Nov 10, 2012 7:12 am

Re: weBuilder 2015 MulticolorHTML

Postby Aivars » Mon Dec 22, 2014 12:44 pm

It is, here's a sample attached for HTML files. I didn't use Multicolor sample as base for this but normal HTML highlighter script that can be exported via Options -> Prefrences -> Text Editor -> Colors -> Advanced Tools -> Custom Highlighter Scripts -> Save Original Script.

Here's what I added - a new token:

Code: Select all
Token=tspecialattrib


new rules:

Code: Select all
shtmltag 'class'                   shtmltag    tspecialattrib
shtmltag 'id'                   shtmltag    tspecialattrib
shtmltag 'name'                   shtmltag    tspecialattrib
shtmltag 'action'                   shtmltag    tspecialattrib


Remember that you need to restart the editor after changing the script.
Attachments
testattribs.zip
(6.98 KiB) Downloaded 220 times
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2456
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: weBuilder 2015 MulticolorHTML

Postby Aivars » Mon Dec 22, 2014 12:49 pm

Here's how it looks:

highlighterattribs.png
highlighterattribs.png (3.18 KiB) Viewed 4184 times
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2456
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: weBuilder 2015 MulticolorHTML

Postby tomy300 » Tue Dec 23, 2014 7:53 am

Thanks it's work

but if I try to change the file MulticolorHTML.xs directly and add your code it don't work. I restart webuilder and no change.

also HTML Known Tag Name, it's for every tag could I add exception and overide the default Tag Name color ?

thanks
tomy300
 
Posts: 10
Joined: Sat Nov 10, 2012 7:12 am

Re: weBuilder 2015 MulticolorHTML

Postby Aivars » Tue Dec 23, 2014 12:24 pm

I don't know about MulticolorHTML.xs but remember that it's just a sample provided for learning the highlighter syntax, the token and state names might differ and it's very likely that you can't just copy but some modifications are required. If you're interested in writing your own highlighters, step 1 is learning the documentation very carefully: http://help.blumentals.net/webuilder/cu ... rs_doc.htm. If you're a good programmer, you'll get it, it's not *that* complicated.
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2456
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia


Return to HTMLPad / Rapid CSS / Rapid PHP / WeBuilder Support

Who is online

Users browsing this forum: No registered users and 17 guests