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
WeBuilder 8.1 - Comments with keyboard in HTML and CSS
Moderator: kfury77
Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
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;
- syrupcore
- Top Contributor
- Posts: 917
- Joined: Thu Jul 21, 2005 12:58 am
- Location: Portland, Oregon, usa
- Contact:
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
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
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 itsyrupcore wrote:you can use a snippet for HTML comment and another for CSS comments and make them one line.

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 ...)MikeyB wrote: if you use the Comment toolbar button there is no line breaks
Re:
I just ran into the same problem!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.
You mean i have to allocate a shortcut without the use of SHIFT to insert comments by shortcut?
- 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
Yes, have a shortcut key that does not require having Shift key down.
Re: WeBuilder 8.1 - Comments with keyboard in HTML and CSS
Damn, i'm used to "strg+shift+m" as a long-time homesite user!



- 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
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.