Community
    • Login

    How to set options for the current file?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 329 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.
    • F
      Francoleddu
      last edited by

      I have been using TextPad for years and now I would like to start using NPP.
      NPP is very flexible and configurable but there is one thing I can’t do.
      TextPad has the ability to change various settings of the current file ‘on the fly’, without having to change the general settings, with the ‘Document Properties’ command.
      Is it possible to do something similar with NPP?
      At least for some settings such as tab spacing, use of tabs or spaces, screen or print font.

      Thanks for any suggestion!

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Francoleddu
        last edited by Alan Kilborn

        @Francoleddu

        Sorry, no reasonable way to make it do what you’re asking.

        tab spacing, use of tabs or spaces

        But I do agree that it might be nice to override these things for a single file, occasionally.

        CoisesC 1 Reply Last reply Reply Quote 1
        • CoisesC
          Coises @Alan Kilborn
          last edited by

          @Alan-Kilborn said in How to set options for the current file?:

          But I do agree that it might be nice to override these things for a single file, occasionally.

          Just speculating… if some glutton for punishment were to try to implement this concept in a plugin, which would make more sense to you?

          1. Have a set of features (word wrap, tabs/spaces, etc.) each of which could be enabled for per-tab memory? Enabled settings would be remembered separately for each tab, and some method would have to be devised for establishing default settings for new tabs (since changing a setting would only affect the current tab, and there is always a current tab).

          2. Have an “isolate tab” property which, when turned on for a specific tab, would cause any changes in any of the settings the plugin manages to be kept independently for that tab (neither changing nor being affected by the global settings), leaving other tabs (that are not marked isolated) to behave as they do now.

          3. Something else (like file-name-based memory).

          Alan KilbornA 1 Reply Last reply Reply Quote 2
          • Alan KilbornA
            Alan Kilborn @Coises
            last edited by

            @Coises

            Actually, I think any of those ideas could be made to work well.

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