Php comment color wb2014

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;

Php comment color wb2014

Postby dexter01 » Mon Aug 04, 2014 3:22 pm

Hi, Can I set the color style of the php comments differently for the tag //comment and /* comment */ ?
Thanks
dexter01
 
Posts: 10
Joined: Sat Jul 26, 2014 11:37 am

Re: Php comment color wb2014

Postby Aivars » Mon Aug 04, 2014 4:26 pm

Only by making a custom highlighter script. See: http://help.blumentals.net/webuilder/cu ... _intro.htm
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2456
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Php comment color wb2014

Postby dexter01 » Tue Aug 05, 2014 9:56 am

I save the script and find 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  tphpcomment
sphpcomment3  [^\*]*               sphpcomment3  tphpcomment
sphpcomment3  \*[^/]               sphpcomment3  tphpcomment
sphpcomment3  [\*]*/               shtmlPHP      tphpcomment


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
dexter01
 
Posts: 10
Joined: Sat Jul 26, 2014 11:37 am

Re: Php comment color wb2014

Postby Aivars » Tue Aug 05, 2014 10:07 am

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:

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
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2456
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Php comment color wb2014

Postby dexter01 » Tue Aug 05, 2014 12:27 pm

Thank you very much!
dexter01
 
Posts: 10
Joined: Sat Jul 26, 2014 11:37 am


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

Who is online

Users browsing this forum: No registered users and 6 guests

cron