Franck Marcia wrote:
2007/4/3, amiel montecillo <[EMAIL PROTECTED]>:
Cool tools, but do you some lua script that will select the text between
tags? Like selecting the text within <p>text</p>?
Yes: Alt+S then T
Look at scripts/scite/key_commands.lua for more shortcuts.
When you take a look at key_commands.lua, each key command generally
points to a function in a table. That table is typically the name of a
source file in one of the "bundle" directories. In this case, the Alt+S
t shortcut references to the function Editing.select_enclosed, therefore
a look in scripts/scite/ will show you that editing.lua is the file that
contains the select_enclosed function.
Per-language commands are a bit different. Each language is its own
"bundle" folder (e.g. scripts/ruby/) with function commands in
scripts/_language_/commands.lua. At the bottom of each commands.lua file
most probably is a set of language-specific key commands which reference
to a function in the language table (e.g. Ruby is the table name, ri_doc
is a function in that table)
Hope that helps a bit more in the understanding of my project structure.
I should do a more specific writeup whenever I get the chance.
Take care,
-Mitchell;
Franck.
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest