custom button
- 
Hello there, i’d like to know how i can create a cumtomized button to have a prewritten template already present on the page.
On practice it would be a call come in, i click this button and Pouf a new page with a perwritten templace appear. instead of always copy pasting from another text. Is that possible ?
 - 
With a scripting plugin it is fairly simple to do.
Here’s an example with PythonScript:# -*- coding: utf-8 -*- from Npp import editor, notepad template_text ='''I am a template of whatever you want; as many lines as you want; or whatever ''' notepad.new() editor.setText(template_text)Result when you run it:

i click this button and Pouf a new page…
You can tie the running of a script to a toolbar button
 - 
and how do you enable that ? :) please
 - 
@Philippe-Lajeu said in custom button:
and how do you enable that ? :) please
A good into to setting up a script is found HERE.