HandCoder
Advanced HTML source editing, Tidy and ASP/JSP/PHP support for Nvu and KompoZer.
Features
Nota:
- HandCoder only works on local files, not (yet) on distant files;
- Tidy is not (yet) supported under MacOS X.
Installation
As far as I know, Nvu doesn't properly support localized extensions; it might be possible with future versions of Nvu, but for now, you have to choose a language-specific version of this extension.
To install on Nvu:
- choose your language above
- save the extension on your hard drive (save link target as...)
- launch Nvu
- Tools > Extensions > install
- close and relaunch Nvu
Do not install this extension on Firefox!
Changelog
- version 0.3.3 (2006-05-20)
- bugfixes :-(
- version 0.3.2 (2006-03-25)
- better PHP support (rewritten)
- templates and fragments are editable in Source mode
- now able to open local *.php files on Linux
- version 0.3.0 (2005-11-27)
- first public release
- watches for modifications in each active page
- auto-reformatting with Tidy
- ASP/JSP/PHP support disabled by default
- 2005-10-20: first XPI, based upon NsmConText 0.2.5+
Roadmap
- best possible ASP/JSP/PHP support
- Tidy support on MacOS X
- "Source" tabs for CaScadeS and Advanced Properties
- auto-update
FAQ
- Why does Nvu change my markup?
-
Nvu is a wysiwyg HTML editor, not a text editor; it will change your markup, you will lose your code identation, line wrap prefs, etc. But :
- who gives a shit?? Besides me I mean...
- this is the way Nvu will always work
- the "code cleanup" dialog does a good job
- it's quick and easy to reformat HTML code with html Tidy
The best you can do is to add Tidy in launchy.xml as an editor; this way you can launch Tidy on the current page with the "HTML Source" button. The code layout will probably be better than what you could ever do "by hand".
A better integration of Tidy would be better, with charset and document type detection, an option box to specify other prefs (indentation, line wrap...), etc. Maybe sometime.
- Why does Nvu corrupt my PHP code?
-
Because it changes your markup.
Nvu can't edit a non-HTML file; it supports PHP if:
- there is no PHP code outside the <html>...</html> document
- all PHP code is embedded in <?php ?> tags (short tags like <?...?> and <%...%> are not supported)
I'm working on a workaround for these two points; Hand Coder v0.4.x might add such icons to Nvu's editor window
;-)
Note: Nvu versions < 1.0 of Nvu reformat all HTML attributes, which means you can use neither <?php $variable ?> nor {variable} as attributes values.
- Is it possible to use Nvu to publish a PHP script on a web server?
-
No, if Nvu opens a PHP script it will probably corrupt it (see above).
I still use FileZilla for all publication tasks.
It would be nice to have a "publish" option in the site manager context menu, to publish a file without opening it in Nvu (simple FTP transfer)... maybe in a coming version, since I intend to implement a "DW-style FTP sync" item.Meanwhile, the best is to use an FTP sync software. FTPsync.pl seems interesting but I hate don't know anything about Perl.
- How can I preview a PHP page from Nvu?
-
The "HTML Preview" button opens a web browser with an address like file://C:/[...]/mypage.html or ftp://mysite/mypage.html, and PHP code will not be interprated by the web server.
Use the site manager context menu to open any PHP, ASP, JSP or HTML page with the web server address, like http://mysite/mypage.html (requires a correct http address in the site options).

last update: