script plugin
Posted: Sun Jan 19, 2014 5:56 pm
Hello,
I'm currently working on script plugin.
The main goal of this plugin is to allow users to extends CodeLite with simple functionnalities without having to create a c++ plugin. It's based on the lua langage.
Currently, this plugin doesn't react to CodeLite events, but in the futur, if needed, I can add this functionnality
Here is a very small sample of a script, which append a comment at the end of the current file :
Let me know if somebody may be interrested by this plugin.
I'm currently working on script plugin.
The main goal of this plugin is to allow users to extends CodeLite with simple functionnalities without having to create a c++ plugin. It's based on the lua langage.
Currently, this plugin doesn't react to CodeLite events, but in the futur, if needed, I can add this functionnality
Here is a very small sample of a script, which append a comment at the end of the current file :
Code: Select all
editor = cl_manager:GetActiveEditor()
if editor then
content = editor:GetEditorText()
content = content .. "\n//end file"
editor:SetEditorText(content)
end