I wonder whether a solution exists for the following problem: I am using Notepad++ to create programs in Ruby, Tcl or shell script. I try to manually format my code so that the lines don't exceed 80 characters to make the display look good within a "usual" terminal window. No problem with this.
However, when it comes to long comment, manually reformatting the text becomes tedious, because comment blocks are usually "free form" text, and some help in word wrap would be great. This applies in particular to the case, where a whole comment block gets intended; the line ends, which had been aligned nicely within a 80-character boundary, suddenly stuck out to the right. Comment blocks in those languages are lines which start with a "hashmark" (#).
I tried TextFX, which has a menu entry "ReWrap", but this reformats my text so that all the hashmarks are now in column one. I am looking for a feature "rewrap comment block". Since Notepad++ already knows how comments look like in the respective language, it should be possible to implement this.
Does someone know a plugin, which offers this functionality?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I wonder whether a solution exists for the following problem: I am using Notepad++ to create programs in Ruby, Tcl or shell script. I try to manually format my code so that the lines don't exceed 80 characters to make the display look good within a "usual" terminal window. No problem with this.
However, when it comes to long comment, manually reformatting the text becomes tedious, because comment blocks are usually "free form" text, and some help in word wrap would be great. This applies in particular to the case, where a whole comment block gets intended; the line ends, which had been aligned nicely within a 80-character boundary, suddenly stuck out to the right. Comment blocks in those languages are lines which start with a "hashmark" (#).
I tried TextFX, which has a menu entry "ReWrap", but this reformats my text so that all the hashmarks are now in column one. I am looking for a feature "rewrap comment block". Since Notepad++ already knows how comments look like in the respective language, it should be possible to implement this.
Does someone know a plugin, which offers this functionality?
Hi, Ronald,
May be a possible solution, using regular expressions, to wrap your text as you would like, exists :-)
However, further information seems necessary :
Does your text indented with spaces, tabulations or both ?
The "hashmark" (#) is a single line comment, which begins each comment line, after a possible indentation, isn't it ?
Do you also use a block comment syntax like, for instance, the couple
\*,*\in C language ?And, of course, could you provide an example of your present code, with a comment blocks indented and the form of wrapping that you would like to ?
Many thanks, in advance for your reply :-)
Best Regards,
guy038
Last edit: THEVENOT Guy 2015-05-05