Menu

! in front of selected lines.

2007-03-15
2012-11-13
  • Nobody/Anonymous

    Hi

    I have a question regarding this very useful piece of software.

    I am looking for a way to insert an exclamation mark (!) in front of marked lines and remove them again if needed. Either a function already in Notepad++ or a plug-in.

    Any help would be greatly appreciated.

    Stefan Kristensen

     
    • Nobody/Anonymous

      Hi,

      I have a similar situation by slightly different. I have a file type with extension .note where I keep notes for my work. I want it to have the same style as Python (block folding/unfolding fron indentation) but with a different set of Keyword highlights.

      Any help would be appreciated.
      Podi

       
    • MJG

      MJG - 2007-03-15

      That would be easy to do in a language where the comment line was indicated by "!".

      As a test, create a user-defined language called, say, "Bang".  Select "View > User Define Dialog...".  Click "Create New..." and call the language "Bang" (or whatever you prefer).  On the "Comment & Number" tab, enter "!" (without the quotes) in the large edit box within the Comment Line group.  I also suggest changing the forground color to something like green.  Close the dialog.

      Now open up a test document.  Select "Bang" (or whatever you chose) from the Language menu.  Then mark a block.  You can toggle the "!" mark three different ways: hot key (default is Ctrl-Q), right mouse button's popup menuitem ("Block comment/uncomment"), or Edit menuitem ("Block comment/uncomment").

      You can change the language back to whatever it is at that point.  The user-defined language is saved in userDefineLang.xml when you close Notepad++.  --Joel

       
    • Nobody/Anonymous

      Thanks, this was exactly what I was looking for.
      I appreciate it alot.

      Stefan