Community
    • Login

    NeWDocDefaultSettings lang:1 ; settings , which file to modify ?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 414 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.
    • WestJcW
      WestJc
      last edited by

      I want to start all new files in php, with the tags <?php ?>

      I read through the docs and found the NeWDocDefaultSettings lang:1 for php, but I don’t know where and how to add it.

      Can people tell me how to do this and which file to change ?

      dinkumoilD 1 Reply Last reply Reply Quote 0
      • dinkumoilD
        dinkumoil @WestJc
        last edited by dinkumoil

        @WestJc

        The NewDocDefaultSettings is an XML node in <Npp-install-dir>\config.model.xml respectively %APPDATA%\Notepad++\config.xml but it’s for configuring EOL format, character encoding and default (programming) language for new files, thus it is not suitable for what you want to achieve.

        But you could try the NewFileBrowser plugin. It provides the ability to define templates for two programming languages which can be assigned to a keyboard shortcut.

        Note: The plugin is only available as 32 bit version. You can install it via PluginManager (up to Notepad++ v7.5.9) or via PluginsAdmin (Notepad++ v7.6 and above).

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