WeBuilder 8.1 - Comments with keyboard in HTML and CSS

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
pmmueller
Posts: 5
Joined: Sun May 20, 2007 4:07 pm

WeBuilder 8.1 - Comments with keyboard in HTML and CSS

Post by pmmueller »

Hi,

when I insert comments in HTML oder CSS with a keyboard shortcut like CTRL+SHIFT+M I always get a line break inbetween, like this (for HTML):

<!--

-->

What I would like is plain old <!-- --> for HTML or /* */ for CSS without line breaks. I know I can get these from the toolbar, but is there any possibility to add comment via keyboard without linebreaks?

What I would ideally like is the following behaviour:

1. I select text (HTML or CSS)
2. I press CTRL-SHIFT-M
3. WeBuilder puts appropriate comment marks around the selection without adding additional line breaks.
4. If the selection begins and ends with comment marks WeBuilder should remove those marks.

Thanx
Peter
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

I'd love to see the same. with CTRL+ALT+SHIFT+M to make it a line break style comment.

You can't get all you want now but you can use a snippet for HTML comment and another for CSS comments and make them one line. This is what I do currently. The downsides are you need a separate shortcut for each and it wont uncomment for you. That said, it works pretty well for me.

Maybe there's another way to get what you'd like but I'm not aware of it.

Will
User avatar
MikeyB
Top Contributor
Posts: 511
Joined: Fri Jun 09, 2006 10:38 am
Location: UK
Contact:

Post by MikeyB »

Odd thing is, if you use the Comment toolbar button there is no line breaks.
Only happens when you assign it to a shortcut key.
pmmueller
Posts: 5
Joined: Sun May 20, 2007 4:07 pm

Post by pmmueller »

syrupcore wrote:you can use a snippet for HTML comment and another for CSS comments and make them one line.
Thanx. It's so obvious and I use snippets for multi-line comments in CSS, but I didn't think of this one. If you can't solve a problem, work-a-round it ;)
MikeyB wrote: if you use the Comment toolbar button there is no line breaks
Yes, that's what's so annoying. My right hand constantly moved between keyboard and mouse to click on that /* */ on the toolbar (until I made that snippet syrupcore mentioned above ...)
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

DO NOT use Shift. When you hold down shift, comment feature adds line break. So hold down Shift and you get line break, do not hold Shift and you get a simple comment.
Karlis Blumentals
Blumentals Software
www.blumentals.net
x3po
Posts: 139
Joined: Fri May 16, 2008 10:48 am

Re:

Post by x3po »

Karlis wrote:DO NOT use Shift. When you hold down shift, comment feature adds line break. So hold down Shift and you get line break, do not hold Shift and you get a simple comment.
I just ran into the same problem!
You mean i have to allocate a shortcut without the use of SHIFT to insert comments by shortcut?
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Re: WeBuilder 8.1 - Comments with keyboard in HTML and CSS

Post by Karlis »

Yes, have a shortcut key that does not require having Shift key down.
Karlis Blumentals
Blumentals Software
www.blumentals.net
x3po
Posts: 139
Joined: Fri May 16, 2008 10:48 am

Re: WeBuilder 8.1 - Comments with keyboard in HTML and CSS

Post by x3po »

Damn, i'm used to "strg+shift+m" as a long-time homesite user! :?
:D
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Re: WeBuilder 8.1 - Comments with keyboard in HTML and CSS

Post by Karlis »

Yeah, this is a bit strange implementation, but at the present time Shift works as a modifier to many commands. We will possibly change this in the future to allow wider use of Shift key.
Karlis Blumentals
Blumentals Software
www.blumentals.net
Post Reply