Let editplus automatically format JS, CSS, HTML...

Source: Internet
Author: User
I usually use editplus to write some small test code or study other people's code, but I often encounter these problems: the downloaded html/CSS code is messy, and the JS Code is compressed, or we want to compress and confuse our code for release. Of course, for code formatting and code compression, we can all use proprietary tools or use some online work. Since editplus can expand the plug-in, why don't we use this feature to integrate these tools into EP?

In fact, I have had these ideas for a long time and have never studied them in depth. For the EP user tool group, I usually stick some help manuals for reference during development. Today, in blueidea, someone posted an article titled "Let editplus automatically format CSS and JS". After reading the article, I thought it was well written and I suddenly came up with inspiration, why not integrate common front-end development tools?

Just do it. I found some related tool code on the Internet, perform the transformation according to the author's method (the author uses the "local cscript calls JS + EP text filter" method ).

The following describes the integration method (the Chinese version of editplus3 is used as an example ):

1. Download the Toolkit: edtools.rar. decompress the tool and place it in a directory on the disk, for example, D: \ edtools.

2. Open ed, open "Tools"-"user tool Group", select a tool group in the pop-up object box, select a tool group in the "Group and Tool project" drop-down box, and click "group name ", set a name for this group of tools, as shown in "front-end development tools:

3. Add the tool below. Here we will take the jsformat as an example to explain it.
Click "add"> "application". In the newly created item, enter a name in the menu text, for example, "jsformat". In the command, enter:

Java code
  1. Cscript/nologo "D: \ edtools \ jsformatter. js"
cscript /nologo "D:\edTools\jsFormatter.js"  

The content in the quotation marks must modify the path of the file on your disk.
In the following options, select "Run as text filter ". As shown in:

4. The other installation methods are similar to those of jsformat. Click the Ed tool and you will find: jsformat Ctrl + 1. After opening a JS click, you will find the mystery.

: Http://download.csdn.net/source/1907530

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.