GithubHelp home page GithubHelp logo

webhostfly / sublimehtmltidy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from welovewordpress/sublimehtmltidy

0.0 2.0 0.0 326 KB

Tidy, clean and prettify your HTML code with this plugin for Sublime Text 2

License: GNU General Public License v2.0

Python 60.85% PHP 39.15%

sublimehtmltidy's Introduction

HTML code formatter for Sublime Text 2

About

This is a Sublime Text 2 plugin allowing you to clean and tidy up your HTML code.

It uses a version of libtidy, which comes bundled with PHP 5.

If your local PHP installation does not support the libtidy extension it will fall back to the webservice on tidy.welovewordpress.de.

Dedicated to Jeffrey Way @envatowebdev

Usage

ctrl + shift + P and type Tidy HTML, or you can set up your own keybinding as shown below.

Customize

You can customize a growing number of options in HtmlTidy.sublime-settings.

Open Preferences -> Package Settings -> HtmlTidy -> Settings - Default to see the available options.

Then open Preferences -> Package Settings -> HtmlTidy -> Settings - User (which will be empty on the first time), copy the default settings and start to modify them.

To set up a custom keybinding, you can insert the following line into your Default.sublime-keymap:

{ "keys": ["ctrl+alt+t"], "command": "html_tidy"}

Requirements

On OS X and Linux you need to have PHP5 installed at /usr/bin/php. This should be the case at nearly every modern system.

For Windows you need to have PHP5 installed somewhere where HtmlTidy can find it, i.e. in your PATH. If you can run php.exe -v from the windows command line, all should be fine. If not, and you are sure you have PHP installed, please file an issue.

Install

Package Control

The easiest way to install this is with Package Control.

  • If you just went and installed Package Control, you probably need to restart Sublime Text 2 before doing this next bit.
  • Bring up the Command Palette (Command+Shift+p on OS X, Control+Shift+p on Linux/Windows).
  • Select "Package Control: Install Package" (it'll take a few seconds)
  • Select HtmlTidy when the list appears.

Package Control will automatically keep HtmlTidy up to date with the latest version.

If you have some problems or improvements with it, contact me via GitHub.

sublimehtmltidy's People

Contributors

welovewordpress avatar fitnr avatar wp-lab avatar calumbrodie avatar longhua avatar nick1n avatar

Watchers

James Cloos avatar Mahmudul Hasan pasha avatar

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.