Re: PHP+HTML, if statement openning jump
Eric Laffoon <[email protected]>
| Newsgroups | gmane.comp.kde.devel.quanta.user |
|---|---|
| Organization | KDE WebDev |
| Message-ID | <[email protected]> |
On Monday 05 March 2007 10:23 am, Carl Hartung wrote: > Hi Andras and happy new year! Sorry for this but I have a non-Quanta+ > solution for this specific and extremely frustrating problem: > > jEdit (jedit.org) has many useful plug-ins including one called > "whitespace". This is the only reliable solution I've found for tracking > down and fixing orphaned or improperly nested tags in very long documents. Actually if you don't mind scripting you can do this in Quanta. It's a matter of just writing some shell scripting and DCOP. If you have PHP CLI you can use that for the script. 1) get the current cursor postion before or after a bracket 2) read in the editor content by line and parse 3) go to the line you want to examine (I'm pretty sure there is DCOP for that) The point is you can look for if/else too and see where a bracket does or does not close if you want to write it well. Whatever you arrive at can be put into a button on the toolbar. It can also be shared with the community by submitting it from Quanta to our global NewStuff respository... then people can download it from within Quanta. This is what I had hoped would happen when we set this up is to get a lot of useful scripts. You write one and 100 other of our million users and how many useful things can you do now? -- Eric Laffoon - Quanta+ Team Leader http://quanta.kdewebdev.org