[prev in list] [next in list] [prev in thread] [next in thread] 

List:       quanta
Subject:    Re: [Quanta] PHP+HTML, if statement openning jump
From:       Eric Laffoon <sequitur () kde ! org>
Date:       2007-03-05 20:51:44
Message-ID: 200703051251.44937.sequitur () kde ! org
[Download RAW message or body]

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
_______________________________________________
Quanta mailing list
Quanta@mail.kde.org
https://mail.kde.org/mailman/listinfo/quanta
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic