How can I change the standard "save as" filetype of Notepad++?

24
2013-09
  • grunwald2.0

    In which weird file format, unreadable to other applications, does Notepad++ save its files and how I can change it?

    I searched through all the settings/options, but didn't find anything.

    How can I change the standard "save as" filetype of Notepad++?

  • Answers
  • Peter Mortensen

    I think you want to change the default file format for new documents that Notepad++ uses when you run the program from the icon. If that's correct. You can change the File format of a new document like this.

    1. Navigate to C:\Program Files (x86)\Notepad++

    2. Then open the file config.model.xml (if you use Notepad++ to edit you won't be able to save as the file is in use.)

    3. Look for this line around line #28 <GUIConfig name="NewDocDefaultSettings" format="0" encoding="0" lang="1" />

    4. Then you have to change the value for "lang=0" by default it opens everything in txt format. If you look at step 3 I have "1" because I use it for PHP. You'll have to check the source code if you want to change it to anything else. As the developers did not list all the languages in this configuration file you could use.

    Post back if you need further explanation.


  • Related Question

    windows - How can the font size be changed in Notepad++?
  • Peter Mortensen

    How can the font size be changed in Notepad++?

    I just downloaded and installed Notepad++ v5.4.5 (I have been using UltraEdit for the last 11.5 years) and can not find a menu command for changing the screen font. I want to change it to Lucida Console 18pt.


    Other notes: to download Notepad++ go directly to the SourceForce download page for Notepad++.


  • Related Answers
  • s.Daniel

    Ctrl and NUMPAD +/NUMPAD - or mouse wheel to zoom in/out

    Edit: Or to achieve exactly what you asked for...

    Settings > Style Configurator. Under Font Style you can set the font and size

  • Community

    Open menu Settings/Style Configurator. Then with the default theme "Default (styles.xml)" and default language "Global Styles", change the font name and font size for style "Default Style" (the default, style "Global override" will not cut it).

    If a document is already open then the display will change immediately as the font name and font size is changed - nice touch! Press the "Save & Close" button to keep the new settings.

    Note that in Notepad++ 6.0, you will also need to check the enable global font and enable global font size check boxes.

  • Tom Wijsman

    Alternatively, hold Ctrl and use the scroll wheel of your mouse.

  • Diago

    Fonts and styles can be changed in the Style Configurator.

    • Settings
    • Style Configurator
  • none

    With 5.9.4 I have found that the global override does cut it, as zooming seems to influence global and language-specific font settings differently so that whitespace has different sizes (Tabs don't line up with different zoom levels). The font size did not seem to change either..

  • athahernadeem

    (Notepad++ 6.1.1)

    I'm not sure about you, but to me this feature should be in Preferences. I totally missed it when it was right underneath it :p.

    Anyway, you could kill two birds with one stone by changing the theme.

    Change font & Chose a dark background:

    1. Go to Settings on the top menu
    2. Chose Style Configurator...
    3. At the top it's the theme selector Select theme

    Notepad++ has many themes to choose from, so if you're one of those that likes to code on a dark background with a san-serif font the Ruby Blue theme is a good choice, it works great for me.

    My 2¢.

  • Gaurav

    Ctrl + F12 will give you all authorities to change the appearance, background, foreground, fonts etc. !