Community
    • Login

    How to increase the max keyword dropdown size?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 2.5k 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.
    • Emistry HaoyanE
      Emistry Haoyan
      last edited by

      As you can see from this GIF
      http://i.imgur.com/PLADyjq.gif

      By default notepad++ only can show max of 5 items within the lists.
      Since I added alot of custom keywords …

      is there a way for me to increase the dropdown size to maybe 15~30 ?
      Where can I find the setting for this?

      1 Reply Last reply Reply Quote 0
      • dailD
        dail
        last edited by

        Nothing is built in by default, however, you can do it with a plugin. Install LuaScript via the PluginManager, edit it’s startup script and add this:

        editor1.AutoCMaxHeight = 15
        editor2.AutoCMaxHeight = 15
        

        save and restart N++.

        1 Reply Last reply Reply Quote 0
        • Emistry HaoyanE
          Emistry Haoyan
          last edited by Emistry Haoyan

          hi thx for the info… is this only work for specific language like “LUA language” since it’s named as LuaScript here?

          Where can I find more info about those variable that I can be used in the script?
          any documentation for all the variables?
          editor1.AutoCMaxHeight = 15
          editor2.AutoCMaxHeight = 15

          what’s the “editor1” and “editor2” refer to ?

          Edit:
          these i guess…
          https://dail8859.github.io/LuaScript/

          1 Reply Last reply Reply Quote 0
          • dailD
            dail
            last edited by dail

            is this only work for specific language

            Lua is just used to control Scintilla features that are not exposed by Notepad++, but it will work for any language.

            what’s the “editor1” and “editor2” refer to ?

            Since Notepad++ can have two files open side-by-side it has 2 “editor” instances refered to as “editor1” and “editor2”. So setting both editors makes sure that if you move a file to another view it still works correctly.

            these i guess…https://dail8859.github.io/LuaScript/

            Yes that’s the official documentation.

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