Menu

Variable width font

2007-05-25
2012-11-13
  • Nobody/Anonymous

    I am so glad to see that Windows now has a useful editor for free. Notepad++ being really free is even better. Thanks a lot!

    Notepad++ seems to go against the standard by using variable width fonts for comments in many programming languages. I only see a very tiring way to change that manually. Is there a quick solution to make all languages fixed-width font same size only?

    Martin

    P.S: I am using 4.1.2

     
    • MJG

      MJG - 2007-05-25

      I don't think this will be quick, Martin, but it should be faster than the Styler Configurator approach:

      Make a backup of stylers.xml in your %APPDATA%\Notepad++ directory if it is there, or in your Notepad++ installation directory.

      Open Notepad++, and then navigate to the directory you first found stylers.xml, and open it.

      Replace (ctrl-H) all occurrences of

      "Comic Sans MS"

      with

      ""

      (include the doublequotes both times), and replace all occurrences of

      fontsize="8"

      with

      fontsize=""

      Then save the file.  Close the edit session for the file (File > Close), then close Notepad++.  (Do not open the Styler Configurator during this process!)

      From now on, comments will use the Default Style font and size you have set for the Global Styles setting unless you override them for specific languages.  Some comment types will still have bold selected (fontStyle="1" instead of "0"), but you can change that as well if you wish with the same approach.  --Joel