william wrote:
I'm using Scite for all my text files (maybe not a good idea). But I don't have
knwoledge concerning configuration aspects ;-(.
Thus I'm using Scite for wiki texts (I'm writing it in scite, with correct
formating) then copy/paste to the wiki tool.
In that context I would like to know if it's possible to automatically numbering
titles.
Let me take a small example:
= Title Intro =
bla bla bla
= Title Ideas =
blable
= Title Conclusions =
ble ble ble
Thus, is there possibilities (via lua I presume) to replace word "Title" by an
incremental number (1,2,3) ?
If Yes, where can I find some info for that subject ?
Yes, it is possible. I wrote lua function that does it for you. Put this
into your startup script:
function replace_title()
i = 1
for m in editor:match("Title") do
m:replace(i)
i = i + 1
end
end
You can map it to tool this way (into SciteUser.properties):
command.name.1.*=Replace Titles
command.subsystem.1.*=3
command.1.*=replace_title
command.shortcut.1.*=Ctrl+Shift+T
command.mode.1.*=savebefore:no
-- Roman
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest