Hi, Can I set the color style of the php comments differently for the tag //comment and /* comment */ ?
Thanks
Php comment color wb2014
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;
Re: Php comment color wb2014
Only by making a custom highlighter script. See: http://help.blumentals.net/webuilder/cu ... _intro.htm
Blumentals Software Programmer
Re: Php comment color wb2014
I save the script and find this
But I do not know how to modify it for my needs. Could you tell me or show me how to make a guide that explains what? Thank you
Code: Select all
shtmlPHP // sphpcomment1 tphpcomment
sphpcomment1 [^?]* sphpcomment1 tphpcomment
sphpcomment1 ?[^>] sphpcomment1 tphpcomment
sphpcomment1 ?$ shtmlPHP tphpcomment
sphpcomment1 $ shtmlPHP tphpcomment
shtmlPHP \# sphpcomment2 tphpcomment
sphpcomment2 .* shtmlPHP tphpcomment
sphpcomment2 $ shtmlPHP tphpcomment
shtmlPHP /\* sphpcomment3 tphpcomment
sphpcomment3 [^\*]* sphpcomment3 tphpcomment
sphpcomment3 \*[^/] sphpcomment3 tphpcomment
sphpcomment3 [\*]*/ shtmlPHP tphpcomment
Re: Php comment color wb2014
There is a guide in the link that I gave you, right after the introduction, here: http://help.blumentals.net/webuilder/cu ... rs_doc.htm. But basically what you need is create a new token, e.g. after
Token=tphpcomment
Create
Token=tphpcomment2 {Alternative Comments}
And then change one of the blocks that you pasted to use the new token instead of the normal tphpcomment, I'm assuming what you want is this:
Token=tphpcomment
Create
Token=tphpcomment2 {Alternative Comments}
And then change one of the blocks that you pasted to use the new token instead of the normal tphpcomment, I'm assuming what you want is this:
Code: Select all
shtmlPHP // sphpcomment1 tphpcomment
sphpcomment1 [^?]* sphpcomment1 tphpcomment
sphpcomment1 ?[^>] sphpcomment1 tphpcomment
sphpcomment1 ?$ shtmlPHP tphpcomment
sphpcomment1 $ shtmlPHP tphpcomment
shtmlPHP \# sphpcomment2 tphpcomment
sphpcomment2 .* shtmlPHP tphpcomment
sphpcomment2 $ shtmlPHP tphpcomment
shtmlPHP /\* sphpcomment3 tphpcomment2
sphpcomment3 [^\*]* sphpcomment3 tphpcomment2
sphpcomment3 \*[^/] sphpcomment3 tphpcomment2
sphpcomment3 [\*]*/ shtmlPHP tphpcomment2
Blumentals Software Programmer
Re: Php comment color wb2014
Thank you very much!