@Long-Chang said in Display Descriptions of A Selected Keyword:
Integer -32,768 to 32,767
Are you looking for something like this
88b12277-2915-4d05-b1ef-b363d59efce0-image.png
from Npp import editor, SCINTILLANOTIFICATION, UPDATE suggestion_dict = {'int': 'Integer -32,768 to 32,767'} def on_select(args): if args['updated'] & UPDATE.SELECTION: x = suggestion_dict.get(editor.getCurrentWord(), None) if x: editor.callTipShow(editor.getCurrentPos(), x) # editor.clearCallbacks([ SCINTILLANOTIFICATION.UPDATEUI ]) editor.callbackSync(on_select, [ SCINTILLANOTIFICATION.UPDATEUI ])Needs the pythonscript plugin to be installed.