Menu ▾ ▴

Wrap between characters

The Gun 37
2009-09-01
2012-11-13
  • The Gun 37

    The Gun 37 - 2009-09-01

    Just a quick question.  Is there a way to toggle wrap between words and characters?

     
    • cchris

      cchris - 2009-09-01

      Here is an excerpt of
      http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Managing_Line_Lengths which seems to address your point:

          *  The following macro sets the granularity of the line wrapping method:

      <Macro name=macro_2 Ctrl="yes" Alt="yes" Shift="no" Key="100">
         <Action type="0" message="2268" wParam=new_mode lParam="0" sParam=""/>
      </Macro>

      new_mode is either:

          * 0 for no word wrap
          * 1 for wrap at word boundaries only
          * 2 for wrap at cutoff point
          * Other values lead to undefined behaviour and should be avoided.

      The <Macro ... </Macro> stuff is to be inserted in shortcuts.xml. Since it is a configuration file, the simplest to do that is to use another editor to do the pasting, otherwise please refer to http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Configuration_Files

      The wrappping mode should be between double quotes, as the xml file will abundantly show you. Name and binding can be altered as for any macro.

      CChris

       
    • The Gun 37

      The Gun 37 - 2009-09-03

      Thanks CChris, there're a few information, will look into them.