• Login
Community
  • Login

How to increase the max keyword dropdown size?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 2 Posters 2.6k 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.
  • E
    Emistry Haoyan
    last edited by Nov 27, 2016, 11:53 PM

    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
    • D
      dail
      last edited by Nov 28, 2016, 1:03 AM

      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
      • E
        Emistry Haoyan
        last edited by Emistry Haoyan Nov 28, 2016, 1:14 AM Nov 28, 2016, 1:12 AM

        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
        • D
          dail
          last edited by dail Nov 28, 2016, 1:23 AM Nov 28, 2016, 1:22 AM

          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
          4 out of 4
          • First post
            4/4
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors