Nvu progress 20040302
By glazou on Tuesday 2 March 2004, 10:01 - Nvu - Permalink
- Nvu now preserves PHP code contained in external files (<? ... ?> form only, we will not implement the ASP-like form, so please don't ask)
- Nvu now preserves PHP code inserted into the source view but still chokes on PHP code inserted using the "Insert HTML" menu item

Comments
is the <?php .. ?> form supported? It should be, because that's the way php.net recommends it.
Isn't the ASP form also the JSP form? Not to mention that there are things like ChiliSoft/SunOne ASP... *uses the latter*
Nice work,
Question, i work a lot with template engines and PHP. The Engine i work with the most is Smarty ( smart.php.net ). But i kan edit my templates because Nvu seems to just edit or remove smarty code in the template ( between { } ), Is there a work around, or maybe a future add on for Nvu?
Thankx,
Brian
The asp form is also oracle's psp form. A lot of languages will be unsupported... :-((
Quote: "The asp form is also oracle's psp form. A lot of languages will be unsupported... :-(("
Don't worry - this is Mozilla we're talking about. I'm not a programmer, but I imagine that someone can write an extension implementing whatever ASP support is needed. Look at all the neat extensions for Firefox. I see in Nvu that the "Edit > Preferences > Extensions" menu is just waiting for some extension-y goodness of its own.
Does anyone know when the developer community at nvudev.org will take shape?
Kris
Just wondering : you plan not to preserve ASP and JSP's <% ... %> surrounded code for technical or personal reason ?
As you know, in the exception of personal web pages, today's web is not static any more. An editor that would choke on JSP and ASP syntax would not be useable in a corporate environment... which is pretty sad since we all wish corporate sites provided better HTML...
AMHA (tr: IMHO) the ultimate feature would consist in customizable external code delimiters, or say, consider code that begins with X and ends with Y as comment...
> you plan not to preserve ASP and JSP's <% ... %> surrounded code
> for technical or personal reason ?
What do you think... <%...%> is not something valid in XML or SGML so we would have to hack - and that's a real hack - our parser to be able to preserve that. We would have then to hack our DOM to preserve the "style" of processing instruction; that's needed for the reserialization of the PHP code. That's feasible, but that's a hack.
For the moment, I certainly don't want to see such ugly changes enter cvs.mozilla.org so that would almost certainly imply a fork. And we don't like forks. At all.
Mozilians (Boris, Peter, Jst, ...), opinion?
I apologize that this comment has zilch to do with this particular entry! Please delete if inappropriate.
I started a little wiki to collect information about building NVU on Macintosh. Not that I know anything useful, but maybe it's a start. If you are interested in the subject please visit: www.simir.com/wiki/