syntax highlighting problem

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;
Post Reply
drjee
Posts: 63
Joined: Sun Feb 05, 2006 10:37 pm

syntax highlighting problem

Post by drjee »

Hi,

WeBuilder, otherwise a great tool, does not properly support custom syntax highlighting with altered background colors. I like to use a different background colour for PHP and HTML sections so that scripted parts stand out more. Setting the background colour of all PHP elements to a light shade of gray, however, gives me this:

Image

As you can see, whitespace (specifically tabs) within a PHP tag cannot be coloured. There should be a class "PHP Whitespace" that includes both spaces and tabs within PHP tags. Furthermore, operators cannot be coloured separately (I'm not sure which class applies to them, but it's not one of the PHP colour classes).

What I expect to get is something like this (a screenshot of the same filed viewed with another editor),

Image

perhaps even with an option to colour the (virtual) whitespace at the end of each line, too:

Image

It would be nice to see this fixed.

best, drjee
daredare
Posts: 125
Joined: Sun Sep 09, 2007 1:40 pm

Post by daredare »

yep i was trying to get the background complete black like it's possible on certain text editors while coding in js but looks like it's not possible
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

At the present time this kind of coloring is not available in our editors. If you feel like taking a challenge, you may want to try editing the syntax coloring script/scheme yourself. It is an utterly difficult task but it does allow you to make whatever modifications to syntax highlighting engine.

If you manage to edit the PHP highlighting script to add this, you can post the results on this forum.
Karlis Blumentals
Blumentals Software
www.blumentals.net
Jamest
Posts: 2
Joined: Fri Feb 29, 2008 2:47 pm

Post by Jamest »

Hi together,

has someone found a way to add this feature?

Best Regards

Jamest
multifarious
Posts: 32
Joined: Tue Feb 05, 2008 4:40 pm
Location: Amsterdam
Contact:

Post by multifarious »

try editing the syntax coloring script/scheme
Karlis, I just had a look at one of those scripts (saved from original) but can't make heads nor tails from it.. Is there a manual somewhere?
Doesn't have to be an exhaustive document, just something to explain the basic concepts: I don't shun trial and error.. ;)
Patrick Kanne - webmaniac
- as we fail to imagine, we are punished with reality
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

There is no manual, indeed we did not have manual ourselves when we acquired the code that does the highlighting. I will try to create such manual if time permits.

I will also try to update the highlighter scripts to fix this problem.
Karlis Blumentals
Blumentals Software
www.blumentals.net
Post Reply