BrotherBeosab / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

single # comment (the green font comments) OR user editor macro ability #789

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Enhancement Request:

There are 2 types of python comments in PyScripter: single # (green) and double 
## (grey).
But, PyScripter only offers commands for grey ## comments.

Would like commands to operate on green # comments too.
(pyscripter already offers syntax highlighting for # green comments so half way 
there!)

In WingIDE, they solve this by applying comment operators once for green # and 
applying the operator twice for grey ##.

Alternatively, some workaround to easily get # green comments.
For example, if there was some "record editor commands" macro,
then I could (sort of) hack the removal of the 2nd #.
The editor Notepad++ has this ability.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

2.5.3 on x64 version.
Windows 8.

Please provide any additional information below.

Original issue reported on code.google.com by dennisf...@gmail.com on 2 Mar 2015 at 6:37

GoogleCodeExporter commented 9 years ago
It is standard Python practice to use # for comments and ## for commenting out 
code that you might want to activate back later. e.g.

# commented out code by Chris

##for i in range(10):
##    print(i)

It is not common to turn normal comments into code by removing # and this is 
why PyScripter does not provide such command.

In any case it is easy to create an external tool (Python script) that does 
that.  Look up in the help file the topics for External Tools and Parameters to 
get ideas about how to do that. See as an example Tools, Configure Tools, Sort 
selection.  

Original comment by pyscripter on 21 Mar 2015 at 12:51