GithubHelp home page GithubHelp logo

jstoolnpp's Introduction

A javascript plugin for Notepad++ (formerly JSMinNpp).
 * Douglas Crockford's JSMin algorithm to minimize javascript code.
 * My own algorithm to format javascript code.
 * A JSON data viewer. This JSON data viewer can handle >10MB JSON file easily.

Really helpful to javascript coder on Notepad++ and really easy to use it.
Made in China.
Project Site http://www.sunjw.us/jsminnpp 

INSTALL
Download it from https://code.google.com/p/jstoolnpp/ and copy JSMinNpp.dll to plugin directory of Notepad++.
Or you can just install "JSTool" from Plugin Manager in Notepad++.

LICENSE
GPL 2.0

AUTHOR
Sun Junwen sunjw8888 at gmail.com

jstoolnpp's People

Contributors

sunjw avatar

jstoolnpp's Issues

Issue with JSFormat for return statement

What steps will reproduce the problem?
1. open a javascript file that has some `return SMTHG` statements
2. execute JSMin->JSFormat

What is the expected output? What do you see instead?

I expect a nicely formatted and working code - I get a nicely formatted but not 
working code :)

eg.

-----
function a() { return {a:'a'}}
-----

becomes:

-----
function a()
{
    return
    {
        a : 'a'
    }
}
-----

it should be:

-----
function a()
{
    return {
        a : 'a'
    }
}
-----

(actually I personally prefer 

-----
function  a() {
    /* blah blah */
}
-----


What version of the product are you using? On what operating system?

1.11


Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 22 Jun 2012 at 11:04

mulit-line var statements not indented properly

What steps will reproduce the problem?
1. create a var statement spanning multiple lines
2. run JSMin
3. run JSLint

What is the expected output? What do you see instead?
Expected output is that declaired variables on new lines should be indented in 
from the var statement. This is what is expected from JSLint.

Instead, each new variable is at the same column/character position of the var 
statement.

What version of the product are you using? On what operating system?
1.11.0.0 (windows 7 home premium)

Please provide any additional information below.
I don't think there's anything else to add.

Original issue reported on code.google.com by [email protected] on 9 Aug 2012 at 3:09

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.