Plugin: Comments text in seleted line for HTML and CSS
Moderator: kfury77
Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
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".
Plugin: Comments text in seleted line for HTML and CSS
Hello everybody,
Can somebody write two simple plugins?
1. HTML comment the line from first character to the last character (not from the beginning of the line). <!-- TEXT HERE -->
2. CSS comment the line from first character to the last character. /*-- TEXT HERE --*/
I want to be able to comment the code in the line where the cursor locates without the text selection with mouse or keyboard.
Thanks, Max
Can somebody write two simple plugins?
1. HTML comment the line from first character to the last character (not from the beginning of the line). <!-- TEXT HERE -->
2. CSS comment the line from first character to the last character. /*-- TEXT HERE --*/
I want to be able to comment the code in the line where the cursor locates without the text selection with mouse or keyboard.
Thanks, Max
Re: Plugin: Comments text in seleted line for HTML and CSS
I moved the request away from plugins forum because that one is for ready plugins only.
I'm curious - how often do you need to comment a line like this?
I'm curious - how often do you need to comment a line like this?
Blumentals Software Programmer
Re: Plugin: Comments text in seleted line for HTML and CSS
All of the time
Very frequent operation.
The CSS line commenting is more often.

The CSS line commenting is more often.
Re: Plugin: Comments text in seleted line for HTML and CSS
Here you go:
- Attachments
-
- html css line comment.zip
- (705 Bytes) Downloaded 402 times
Blumentals Software Programmer
Re: Plugin: Comments text in seleted line for HTML and CSS
Thank you very much. The script is working fime with HTML. But comments as HTML the CSS also. But, may be that's important, the CSS style inside STYLE tag are in the HTML file for now.
I also tested in the pure CSS file, not insode HTML. The HTML commenting is working with CSS there also.
I also tested in the pure CSS file, not insode HTML. The HTML commenting is working with CSS there also.
Re: Plugin: Comments text in seleted line for HTML and CSS
There should be 2 new commands - HTML line comment and CSS line comment.
Blumentals Software Programmer
Re: Plugin: Comments text in seleted line for HTML and CSS
O, yes, saw it! Everything working fine for now. Thanks.
Really great and useful improvement for me.
Really great and useful improvement for me.
Re: Plugin: Comments text in seleted line for HTML and CSS
Thank you very much again, realy simple and usefull improvement for me:)
Tested, working fine, the keyboard shortcuts assigned.
Tested, working fine, the keyboard shortcuts assigned.
Re: Plugin: Comments text in seleted line for HTML and CSS
How can I get information about the extension of the current document? I would like to add the "if". Depending to a document in which I am, pasting the correct comment using the same shortcut.
THX,
Bart
THX,
Bart
Re: Plugin: Comments text in seleted line for HTML and CSS
You have several options to choose from:
Document.DocType = dtDefault, dtHTML, dtXML, dtCSS, dtJScript, dtVBScript, dtPerl, dtText, dtWML, dtPHP, dtASP, dtSQL, dtRuby, dtERuby, dtASPX, dtCS, dtSmarty, dtPython, dtApache, dtSass, dtLess
Document.CurrentCodeType = ltDefault, ltHTML, ltXML, ltCSS, ltJScript, ltWML, ltPHP, ltASP, ltRuby, ltSmarty, ltCS
ExtractFileExt(Document.FileName)
See more info about Document object properties: http://help.blumentals.net/webuilder/pl ... uilder.htm
Document.DocType = dtDefault, dtHTML, dtXML, dtCSS, dtJScript, dtVBScript, dtPerl, dtText, dtWML, dtPHP, dtASP, dtSQL, dtRuby, dtERuby, dtASPX, dtCS, dtSmarty, dtPython, dtApache, dtSass, dtLess
Document.CurrentCodeType = ltDefault, ltHTML, ltXML, ltCSS, ltJScript, ltWML, ltPHP, ltASP, ltRuby, ltSmarty, ltCS
ExtractFileExt(Document.FileName)
See more info about Document object properties: http://help.blumentals.net/webuilder/pl ... uilder.htm
Blumentals Software Programmer