Web Developer Tools: Code Beautifier and Formatter

Well-readable and logically-structured code is necessary not merely for outlook. It speeds considerably bug hunting. If you are a developer and are working in the group, there arises another important aspect. The code should be clean and understandable by other developers you are working with.

Before using these tools and services make sure you have a backup of your data.

WordPress Themes – only new and fresh WordPress Themes available for free download.

WordPress Themes – a great compilation of appealing and functional WordPress themes under one roof.

quick highlighter

1. Quick Highlighter can format source codes written in over 85 languages – among them PHP, Ruby, HTML, JavaScript, Perl, Python, Smarty, XML, CSS, Delphi, C++, and more. The tool formats source code and highlights inbuilt keywords, data types etc.

prettyprinter

2. PrettyPrinter is a source code beautifier (source code formatter), similar to indent. It knows PHP, Java, C++, C, Perl, JavaScript, and CSS.It is advisable to make a backup before you replace your code.

4. Ruby Script Beautifier is itself written in Ruby, and it is surprisingly short. The script accepts a command-line list of file names, creates a backup copy of each named file and beautifies the originals. If there is an indentation error (an imbalance of opening and closing keywords), the script will print an error message but will save the result anyway. Indentation errors that appear in functional scripts are obviously the fault of the beautifier, not the script.

5. Tabifier is a tool to properly indent computer code. It currently supports CSS, HTML, and C Style code; the latter being anything that uses curly braces to start and end blocks, and semicolons to terminate statements. JavaScript and PHP both fall into that latter category. (For JavaScript, only when you put the semicolons in, which you always should even though they’re technically optional.)

6. CSS Beautifier offers a variety of options, among them – Style Rule Settings, Style Property Settings, Alphabetizing Feature and De-Capitalization Feature.

7. CSS Formatierer und Optimierer is based on csstidy 1.3dev. The service is available in 4 languages : English, Deutsch, French, Chinese. It provides different compression layouts; you can sort selectors, properties, regroup selectors, optimize shorthands, compress colors, compress font-weight, discard invalid properties and add timestamps. It also allows to create a custom template the system will use to format the code. Note that your code should be well-formed. This is not a validator which points out errors in your CSS code.

8. Highlight.js is a tool that highlights syntax in code examples on blogs, forums and in fact on any web pages. It’s very easy to use because it works automatically: finds blocks of code, detects a language, highlights it. It also allows highlighting for code examples marked up with writing syntaxes like Markdown where there is no way to specify HTML class easily. The program knows following languages: Python, Ruby, Perl, PHP, XML, HTML, CSS, Django, Javascript, VBScript , Delphi, Java, C++, RenderMan (RSL and RIB), SQL, SmallTalk, Axapta, and 1C.

10. PHP Formatter is a free tool is designed to apply your own style. This is handy for the following reasons: you’ve downloaded an unreadable script or a script that doesn’t fit your style, years ago you made a script that doesn’t fit your current style, you want to publish your script, but it has to fit the PEAR style. There’s an option to color the code, delete newlines and/or comments and comment after control structures. Formatted code works exactly the same as non-formatted code. You can use your own styles. It’s suitable for PHP 4 and PHP 5. There’s an option to link PHP functions to the manual.

11. PHP_Beautifier is a Open Source PHP application, distributed under the terms of PHP Licence 3.0. This program tries to reformat and beautify PHP 4 and PHP 5 code automatically. This tool may be useful for developers who get PHP code from other coders and are slightly confused, for those who can’t read their own PHP code anymore, and for those who want to share their PHP code.

12. Online Beautifier for JavaScript is a script that is intended to explore ugly javascripts, e.g compacted in one line, Use it if you want to pretty-format your javascripts. PHP source can be seen online or fetched from subversion repository at svn://edev.uk.to/beautify.

13. Lorins simple code beautifier for C++, C#, Java, and Javascript
You can use the source code of this beautifier to creat your own code formatters.

14. Tidy consists of many program libraries and comes in many variations:

  • TidyGUI is a Windows GUI encapsulation of Dave Raggett’s HTML Tidy, a free utility application from the World Wide Web Consortium that helps you clean up your web pages.
  • HTML Tidy When editing HTML it’s easy to make mistakes. Dave Raggett’s HTML TIDY is a free utility for fixing the mistakes. It also works great on the atrociously hard to read markup generated by specialized HTML editors and conversion tools, and can help you identify where you need to pay further attention on making your pages more accessible to people with disabilities.
  • CSSTidy
  • Perltidy
  • HTML Validator Firefox Extension
Related:

Leave a Reply

11 Responses to “Web Developer Tools: Code Beautifier and Formatter”

  1. Advise-Art Says:

    GOOD LIST ! … thank you 😉

  2. Curtis Says:

    Well, *my* PHP Beautifier takes the PHP, scrambles it, and outputs it in the shape of a pretty flower.

    While it might not be any cleaner, it’s certainly beautiful.

  3. Monk Says:

    Very useful, thanks.

  4. grssnake Says:

    Artistic Style [http://astyle.sourceforge.net/] – source code indenter, formatter, and beautifier for the C, C++, C# and Java programming languages ( & so useful for PHP, Javascript)

  5. pilot Says:

    i use Quick Highlighter is very good

  6. gocanadayaho Says:

    a young We used the forests every from they had

  7. Joel Chippindale Says:

    Another for the list is the Code Beautifier Textmate Bundle, which is written in Ruby and is an improvement on the Ruby formatting provided by Ruby Script Beautifier.

  8. Php Development India Says:

    Recently for the website development, PHP has emerged as the most important scripting languages. It is in the field of web design, system programming has emerged as a scripting language as the most popular choice. If is looking for an Application Developer with PHP and MySQL experience to help develop and support the website of a successful web development company. PHP is now a dynamic and creative web site design will be used expansively. Here you can find Web Developer High Proficiency with Java, J2EE, Weblogic, Oracle and PHP Large Scale System Solutions Framework Testing: WebTest or Selenium Objects. PHP Application Development is best for web application development environment and easily embeded with HTML. PHP Web Development is widely uses these days, due to following reasons.

  9. 陈鹏 Says:

    PHP Code Beautifier and Formatter is useful

  10. chenpeng Says:

    php code formatter

  11. Red Bottom Shoes Says:

    Your blog site is so superb. How fortunate to see everything you have created. Hope you proceed to do the job tough. I wish you possess a good health and wellbeing. thanks!