Plugin: Comments text in seleted line for HTML and CSS

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!

Plugin: Comments text in seleted line for HTML and CSS

Postby MaxA » Fri Jan 31, 2014 3:32 pm

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
MaxA
 
Posts: 18
Joined: Tue Aug 28, 2012 5:53 pm

Re: Plugin: Comments text in seleted line for HTML and CSS

Postby Aivars » Mon Feb 03, 2014 2:59 pm

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?
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2456
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Plugin: Comments text in seleted line for HTML and CSS

Postby MaxA » Mon Feb 03, 2014 3:05 pm

All of the time :) Very frequent operation.
The CSS line commenting is more often.
MaxA
 
Posts: 18
Joined: Tue Aug 28, 2012 5:53 pm

Re: Plugin: Comments text in seleted line for HTML and CSS

Postby Aivars » Mon Feb 03, 2014 4:26 pm

Here you go:
Attachments
html css line comment.zip
(705 Bytes) Downloaded 313 times
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2456
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Plugin: Comments text in seleted line for HTML and CSS

Postby MaxA » Mon Feb 03, 2014 6:15 pm

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.
MaxA
 
Posts: 18
Joined: Tue Aug 28, 2012 5:53 pm

Re: Plugin: Comments text in seleted line for HTML and CSS

Postby Aivars » Mon Feb 03, 2014 6:23 pm

There should be 2 new commands - HTML line comment and CSS line comment.
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2456
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Plugin: Comments text in seleted line for HTML and CSS

Postby MaxA » Mon Feb 03, 2014 6:54 pm

O, yes, saw it! Everything working fine for now. Thanks.
Really great and useful improvement for me.
MaxA
 
Posts: 18
Joined: Tue Aug 28, 2012 5:53 pm

Re: Plugin: Comments text in seleted line for HTML and CSS

Postby MaxA » Thu Feb 06, 2014 11:55 am

Thank you very much again, realy simple and usefull improvement for me:)
Tested, working fine, the keyboard shortcuts assigned.
MaxA
 
Posts: 18
Joined: Tue Aug 28, 2012 5:53 pm

Re: Plugin: Comments text in seleted line for HTML and CSS

Postby domator » Thu Feb 20, 2014 10:33 pm

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
domator
 
Posts: 1
Joined: Thu Feb 20, 2014 10:22 pm

Re: Plugin: Comments text in seleted line for HTML and CSS

Postby Aivars » Sun Feb 23, 2014 9:06 pm

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
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2456
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia


Return to HTMLPad / Rapid CSS / Rapid PHP / WeBuilder Feature Requests

Who is online

Users browsing this forum: No registered users and 9 guests

cron