HTML Formatter
This is an open discussion with 11 replies, filed under Extensions.
Search
HTML Formatter
updated to version 2.1.0
on 2nd of December 2009
Changelog
- Fixed a few simple bugs.
- Added an editor to let you create your own formatters.
Very cool. I look forward to trying it out.
As always Rowan, 10 steps ahead of the crowd. This looks great, and I can’t wait to pull it apart to figure out how you’re doing that nifty settings screen :)
I don’t know if it’s a lack of sleep or what, but where do I go to make the path writable?
I made the htmlformatter/text-formatters directory writable, but that doesn’t work.
A quick look in the code tells me that indeed it tries to save in /extensions/htmlformatter/text-formatters
. Both, the directory and the included files, must be writable by PHP.
Thanks!
:-)
Is this extension dependent on php-tidy?
I’m getting this error when I save text (using the CKEditor option) on my Mac running php 5.3.1 (default install of php on Snow Leopard).
Fatal error: Class 'Tidy' not found in /Users/user/Sites/xml-new/extensions/htmlformatter/extension.driver.php on line 577
Here’s the code that it’s choking on…
$tidy = new Tidy(); /* LINE 577 */ $tidy->parseString( $source, array( 'drop-font-tags' => true, 'drop-proprietary-attributes' => true, 'hide-comments' => true, 'numeric-entities' => true, 'output-xhtml' => true, 'wrap' => 0, // Stuff to get rid of awful word this: 'bare' => true, 'word-2000' => true ), 'utf8' ); $source = $tidy->body()->value;
Yes, it requires Tidy to be installed.
Thanks.
HTML Formatter
updated to version 2.1.2
on 1st of November 2010
Changelog
- Improved HTML5 element support.
- BR elements where mistakenly considered paragraph breaks.
- Fixed some minor bugs and other improvements.
Create an account or sign in to comment.
A new Extension, “HTML Formatter” is now available for download. Comments and feedback can be left here but if you discover any issues, please post it on the issue tracker.