SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    May 2007
    Posts
    242
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Javascript Source Formatter

    Hello. I need a program or web app that will redesign one line coded javascript into indented, clean and easily readable format. The program is expected to reformat below example code


    PHP Code:
    var image=35;var gto=89;if (5>2) {alert("hello")}; 

    into this:

    PHP Code:
    var image=35;
    var 
    gto=89;
    if (
    5>2) {
          
    alert("hello")

    }; 
    Thanks in advance.

  2. #2
    SitePoint Member
    Join Date
    Apr 2006
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here is one:

    http://elfz.laacz.lv/beautify/

    or search on "pretty print."

  3. #3
    404 aliEn's Avatar
    Join Date
    Oct 2001
    Location
    .au/.sg
    Posts
    394
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    JavaScript Beautifier:

    http://www.javascriptbeautifier.com/


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •