Code formatting problems

Let us know what you would like to see in the next version of this software

Moderator: kfury77

Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
  • Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
  • Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
  • Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".
Please note that we DO READ all suggestions, even if a reply is not posted. Thanks!
Post Reply
x3po
Posts: 139
Joined: Fri May 16, 2008 10:48 am

Code formatting problems

Post by x3po »

I noticed, that for my taste, webuilder doesn't format the code properly. in my screenshot i mixed some javascript and php, and i wished the php tags would be somekind of being highlighted same as pure php-tags get formatted.

is this known, and will this be fixed sometime? or is there a way that i can fix that formatting myself?

see screenshot:
Image
Gatis
Blumentals Software Developer
Posts: 545
Joined: Sun Mar 05, 2006 12:30 am
Location: Latvia

Re: Code formatting problems

Post by Gatis »

the php tags would be somekind of being highlighted same as pure php-tags get formatted
I am afraid I did not get this part.
As for the code example you gave, I guess the problem you have is that the code of a single line is split over server lines, right? If so, try the option under "PHP Formatter Settings" => tab "New Lines" => "Add empty lines" => make sure check-box "Except for Single line PHP blocks" is marked.
Kind regards,
Gatis Avots
x3po
Posts: 139
Joined: Fri May 16, 2008 10:48 am

Re: Code formatting problems

Post by x3po »

my problem is, that i want the php parts are colored the same as the javascript-parts.

i'd love to have the

Code: Select all

<?php ... ?>
or

Code: Select all

<?= ... ?>
colored different.

php blocks that are not in javascript-functions are colored different on my pages, so it's hard to find all php-parts of a page, when some areas are not colored the same as it should be. do you understand what i mean?

this is another php-part of the same file, just not inside some javascript-function:
Image

Regards!
Gatis
Blumentals Software Developer
Posts: 545
Joined: Sun Mar 05, 2006 12:30 am
Location: Latvia

Re: Code formatting problems

Post by Gatis »

I think I got want you mean.
Well, you can try to set a background color for PHP code.
Go to Options => Preferences => Text Editor => Colors => choose "HTML with PHP" as language and then set background color for all PHP code Elements.
Kind regards,
Gatis Avots
x3po
Posts: 139
Joined: Fri May 16, 2008 10:48 am

Re: Code formatting problems

Post by x3po »

Gatis wrote:I think I got want you mean.
Well, you can try to set a background color for PHP code.
Go to Options => Preferences => Text Editor => Colors => choose "HTML with PHP" as language and then set background color for all PHP code Elements.
Hey!
Your Hint doesn't work out for me. Unfortunately.
See my Screenshot, i still have different color formatting for my php-blocks:


Is there no possibilty to get the same formatting on that page? Homesite for example, does not have an issue with that...

but i dont wan't to use homesite anymore! :? :wink:
Last edited by x3po on Tue Jun 10, 2008 10:45 am, edited 1 time in total.
Gatis
Blumentals Software Developer
Posts: 545
Joined: Sun Mar 05, 2006 12:30 am
Location: Latvia

Re: Code formatting problems

Post by Gatis »

Please send a code example to our support email address. Thanks!
Also please tell me which version are you using?
Kind regards,
Gatis Avots
x3po
Posts: 139
Joined: Fri May 16, 2008 10:48 am

Re: Code formatting problems

Post by x3po »

Gatis wrote:Please send a code example to our support email address. Thanks!
Also please tell me which version are you using?
Thanks, i will send a code example!
I'm using the latest Version of WeBuilder (9.0.0.96).
x3po
Posts: 139
Joined: Fri May 16, 2008 10:48 am

Re: Code formatting problems

Post by x3po »

Hey,

just noticed, that this "issue" is also present in WB 2010.
When mixing JavaScript and PHP, the code formatter still doesn't work properly.
Just wondered if this will find its way into the roadmap of a future version?

Image

Seems like WB gets confused here. See my following screenshots. i think they are self-explaining:

Image

Image
Post Reply