Color Scheme keywords

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;

Color Scheme keywords

Postby pmk65 » Wed Feb 01, 2017 1:52 am

Im working on a PHP script for converting TextMate color schemes into WeBuilder formats.
So far I got the TextMate schemes parsed and the converting process done.

But I have a problem with trying to decode what the various WeBuilder scheme keywords are used for, so I can do a TextMate to WeBuilder mapping.
Example:

PHP.tnone
PHP.tstring
PHP.tcomment
PHP.tident
PHP.tresword
PHP.tsymbol

What "tag/command" in a PHP file do the various keywords refer to?

Supposed you got this line:
Code: Select all
   function Vegetable($edible, $color="green") {}


What matches "function" and what matches "Vegetable", "$edible", "green" etc.


It would be much easier if the Color section of Preferences, displayed a "preview" similar to this:
http://tmtheme-editor.herokuapp.com/#!/editor/theme/Pumpkin
(You can change the preview to different coding languages.)
There are 10 types of people in the world: Those who understand binary and those who don't.
User avatar
pmk65
 
Posts: 381
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark

Re: Color Scheme keywords

Postby Aivars » Wed Feb 01, 2017 11:38 am

You can open data\parsers\phpparser.dat and take a look inside and see what tokens the parser throws out.

For your sample:
function = tphpresword
Vegetable = tphpident
( = tphpsymbol
$edible = tphpvar
, = tphpsymbol
$color = tphpvar
= = tphpsymbol
"green" = tphpstring
) = tphpsymbol
{} = tphpsymbol
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 1989
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Color Scheme keywords

Postby pmk65 » Thu Feb 02, 2017 10:39 pm

I still don't get it.
What's the difference bettween a "PHP.tphpresword" and a "PHP.tresword" ?

Isn't there any documentation available?
There are 10 types of people in the world: Those who understand binary and those who don't.
User avatar
pmk65
 
Posts: 381
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark

Re: Color Scheme keywords

Postby Aivars » Thu Feb 02, 2017 11:08 pm

This is the documentation for syntax parsers: http://help.blumentals.net/webuilder/cu ... rs_doc.htm
tresword in phpparser.dat represents HTML reserved word (i.e. a known HTML tag)
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 1989
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Color Scheme keywords

Postby pmk65 » Fri Feb 03, 2017 5:47 pm

Thanks. Now I get it! :D :mrgreen:
There are 10 types of people in the world: Those who understand binary and those who don't.
User avatar
pmk65
 
Posts: 381
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark


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

Who is online

Users browsing this forum: No registered users and 1 guest