I have a lua script in scite for AutoIt.
Here the lua script.
function TraceLineNumber()
for m in editor:match("\"|[0-9]*|",SCFIND_REGEXP,0) do
local LineNumber = editor:LineFromPosition(m.pos)+1
if LineNumber < 10 then
LineNumber = "000"..LineNumber
elseif LineNumber < 100 then
LineNumber = "00"..LineNumber
elseif LineNumber < 1000 then
LineNumber = "0"..LineNumber
end
m:replace("\"|"..LineNumber.."|")
end
print("Ich habe fertig")
end
In SciTEStartup.lua I have added the line
LoadLuaFile("TraceLineNumber.lua") -- suche "|12| und ersetze durch akuelle Zeilennummer ==> "|0015|
In SciTEUser.properties I have added
# 34 Zeilenummern ersetzen
command.name.34.$(au3)=ZeilenNummer ersetzen
command.subsystem.34.$(au3)=3
command.34.$(au3)=InvokeTool TraceLineNumber
command.save.before.34.$(au3)=2
command.shortcut.34.$(au3)=Shift+Ctrl+Z
Once more:
I will bevor my AutoIt were compiled that the lua script "TraceLineNumber.lua" will be execute
I have read the documentation. I will not compile a lua script!