Skip to content

nextpad-plus-plus-plugins/CommentToggler.macos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Comment Toggler

This is a unified solution to any automated source code commenting problems you might have with Notepad++ (and even other editors). Comment Toggler uses only a single button (command) to accomplish all the range of commenting you might need. It automatically determines what type of comment to make or to remove.

Plug-in features:

  • Does not insert space in front of the comments (this can lead to confusion between commented-out code and actual manual comments). Exception: REM batch
  • Supports all the built-in languages and even user defined languages*
  • Can do simple single line comments without selection:

  • Preserves indentation in the commented code block:

  • Fixes some indentation inconsistencies:

  • Supports block comments:

  • Supports multiple selections:

  • With every type of comment at the same time:

*Note: I use langs.xml file in AppData\Roaming\Notepad++ to get comment markers. If you want that space in front of the comments or want to use a different style of comment mark, edit your langs.xml file. Comment markers of up to 31 characters are supported. A user defined language file must have a defined extension to be recognised. I couldn't find any way to get the actual name of the currently active UDL, so the plug-in just scans file extension.

About

macOS port of the Comment Toggler Notepad++ plugin — smart per-language comment toggling

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors