Git Product home page Git Product logo

modx-html-beautify's Introduction

(X)HTML Beautify for MODX Revolution

Authors:

  • Dan Gibbs, Gold Coast Media Ltd

Configurable MODX plugin that cleans up (X)HTML source code output.

  • Beautify your source code with configurable tabs and spaces
  • Optionally control your HTML output by forcing valid XHTML, unique ID's
  • Optionally disable certain elements, manipulate HTML comments, insert base/absolute URLs
  • Much more. Now works with HTML5

Utilises hmtLawed by Santosh Patnaik. Originally based on the WP Beautifier plugin for Wordpress by Till Krüss.

Installation

Install via MODX package manager and change settings via Settings > System Settings.

Documentation

Full detailed documentation available at: http://www.goldcoastmedia.co.uk/tools/modx/xhtml-beautify/

modx-html-beautify's People

Contributors

gibbs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

gibbs folksite

modx-html-beautify's Issues

Issue with conditional IE comments

I just loaded the ModX plugin. Thanks!

Consider this comment:

<!--[if gte IE 5.5000]>
     <script type="text/javascript" src="foo.js"></script>
<![endif]-->

That entire block gets stripped if set to remove HTML comments, and of course that means IE5+ doesn't see the script it needs. Can you think of a way to avoid removing these specific comments, or perhaps some other way to do the conditional logic which avoids this specific problem?

For my purposes I'll see if I can fix the JS so that when it's included by IE it performs properly.

I will also probably activate the plugin that tells visitors that they need IE6+. But this issue with conditional comments is interesting nonetheless...
Thanks.

What about HTML5 ?

Hi !

I now develop with HTML5 and XHTML Beautify don't consider the unecessary final slash for balise meta, link, img, br or hr

Do you think to make a "HTML5 Beautify" for MODx ? :)

Extension Update Fails

Extension update fails due to naming differences?

Rename namespace and references to 'xhtmlbeautify' instead of 'htmlbeautify'.

Problems with Formit

When used together with Formit, Formit was not able to to complete its processing.

Problems when using Articles

When using Articles and its subpackages, the taglist navigation and paging don't work anymore. If I deactivate the XHTML Beautify plugin, the navigation works again.

Running on:
MODX 2.2.4 traditional
XHTML Beautify 1.0.2-beta
Articles 1.6.2-pl (getPage 1.2.3-pl, getResources to 1.5.0-pl, Quip 2.3.1-pl, Archivist 1.2.3-pl, taglister-1.1.7-pl).
PHP version: 5.3.8 and 5.3.14 LiteSpeed

No errors in the log.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.