weBuilder 2015 MulticolorHTML
Moderator: kfury77
Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
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
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
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
Re: weBuilder 2015 MulticolorHTML
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
Re: weBuilder 2015 MulticolorHTML
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.
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.
Re: weBuilder 2015 MulticolorHTML
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
Re: weBuilder 2015 MulticolorHTML
yes exacly I don't know if it's possible with the current version.
Re: weBuilder 2015 MulticolorHTML
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:
new rules:
Remember that you need to restart the editor after changing the script.
Here's what I added - a new token:
Code: Select all
Token=tspecialattrib
Code: Select all
shtmltag 'class' shtmltag tspecialattrib
shtmltag 'id' shtmltag tspecialattrib
shtmltag 'name' shtmltag tspecialattrib
shtmltag 'action' shtmltag tspecialattrib
- Attachments
-
- testattribs.zip
- (6.98 KiB) Downloaded 378 times
Blumentals Software Programmer
Re: weBuilder 2015 MulticolorHTML
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
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
Re: weBuilder 2015 MulticolorHTML
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