Roman Hubacek, 27.04.2006 08:44:
Roman Hubacek, 26.04.2006 17:23:
function openPasFromDpr2()
  local path = props['FileDir']  --without trailing /\
  local file = editor:textrange(0, editor.Length)
  for uses in string.gfind(file, "uses.*;") do
    for c in string.gfind(uses, "\'([^\']*)\'") do
      scite.Open(path .. '\\' .. c)
    end
  end
end
Prevent changing buffer is AFAIK not possible. You can change back by scite.Open original file (props['FilePath']). When file is opened, it just does buffer change.

Hi Roman,
the script works perfect except files that be commented out...

is there a possibility to exclude values that have // before '..' or (* and *) or { and } around '..'?


e.g. following files must not be opened:

...//...'Test.pas'...
...{...'Test.pas'...}...
...(*...'Test.pas'...*)...

Frank
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to