David Bosman wrote:
Hello,
...
It is very rough and very simple. Please, don't forget I am not a
programmer at all and that's my first attempt in programing something
else than a PHP page.
There are 5 levels of titles one can fold. Each title is marked with
2 or more '=' :
== Title 1
=== Title 2
and so on. There is no closing tag, each level ends where another
start. There is also a 'comment' syle with opening and closing tags
(/* */) but no folding.
Alas, I didn't succeed in writing a function to use the 'View ->
Toggle...' menu, so one have to manualy open or close each fold. I am
sorry. If any one want to implement it, that 'ld be great. Or is
willing to explain me how to do it ? I could try.
It'll work on '.txt' files and on '.nvl' (don't look for this one : as
far as I know, it's a personal extension I use to distinguish normal
text files from my NoVeLs writings ;-))
Maybe someone else will find it useful ? So here it is. It's also an
humble way to thank you for this amazing editor.
Neat. I'm certainly not a writer, but it's great that you were able to
change the code to make SciTE to do everything you want. Hopefully this
will be useful to someone else as well.
* Scite recompiled :
http://www.palmbavardages.net/telechargements/scite_writers.zip
* Modified source code of scintilla :
http://www.palmbavardages.net/telechargements/scintilla_textfolding.zip
The new functions are stored in 'LexOthers.cxx' (search for 'nvl').
* My user.properties, with a lot of comments to easily change the way
it'll look :
http://www.palmbavardages.net/telechargements/user.properties.txt
Please note that :
- I only tested it on Windows XP Pro SP2, French version.
- I don't know if I share it the way I should ? Should I put all the
source code (scintilla and scite) ? Or just the files I changed ? Or ?
If it were me, I would have only posted the files changed, but either
way is probably fine. Whatever gets the job done. ;)
Chris
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest