• Login
Community
  • Login

[New Plugin] Comment Toggler

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
3 Posts 2 Posters 877 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    ScienceD
    last edited by Jul 20, 2023, 12:24 PM

    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.

    GitHub: https://github.com/ScienceDiscoverer/CommentToggler

    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)
    • 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

    The most advanced demonstration:

    multi_select_block_line_single_combo.gif

    BTW this is my first plug-in, not only for Notepad++ but any program.

    A 1 Reply Last reply Jul 21, 2023, 2:30 PM Reply Quote 5
    • A
      Alan Kilborn @ScienceD
      last edited by Jul 21, 2023, 2:30 PM

      @ScienceD

      I look forward to trying this, as I’ve always thought that Notepad++'s native code commenting commands are deficient.

      There’s only one DLL file in the release 1.0.0; presume it is 64-bit – but how about a version for those using 32-bit Notepad++?

      Are you submitting this to Notepad++ so that it will appear in Plugins Admin in the future?

      1 Reply Last reply Reply Quote 2
      • A
        Alan Kilborn
        last edited by Jul 21, 2023, 2:37 PM

        I couldn’t get the plugin to do anything, for either Python or C++. :-(

        I make a selection, then press the toolbar button and nothing happens.

        I notice the plug hijacks Ctrl+q. I’m a believer that plugins should never assign keycombos.

        1 Reply Last reply Reply Quote 1
        1 out of 3
        • First post
          1/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors