SublimeLinter
=============
## SublimeLinter 3 has landed!
SublimeLinter for Sublime Text 3 is [here](https://github.com/SublimeLinter/SublimeLinter3), and it’s soooooo much better than before! Install it from Package Control and enjoy!
Unless someone else comes forward, SublimeLinter for Sublime Text 2 will no longer be supported. I strongly encourage everyone to upgrade to Sublime Text 3 and SublimeLinter 3 — you’ll be glad you did! Take a look at the [extensive documentation](http://sublimelinter.readthedocs.org/) to see the great new features in SublimeLinter 3.
## Share the love!
I spent hundreds of hours writing and documenting SublimeLinter 3 to make it the best it can be — easy to use, easy to configure, easy to update, easy to extend. If you use SublimeLinter and feel it is making your coding life better and easier, please consider making a donation to help fund development and support. Thank you!
To donate: https://github.com/SublimeLinter/SublimeLinter3#share-the-love
Thank you for your support!
---
SublimeLinter v1.7 Overview
---------
SublimeLinter is a plugin that supports "lint" programs (known as "linters"). SublimeLinter highlights
lines of code the linter deems to contain (potential) errors. It also
supports highlighting special annotations (for example: TODO) so that they
can be quickly located.
SublimeLinter has built in linters for the following languages:
* C/C++ - lint via `cppcheck`
* CoffeeScript - lint via `coffee -s -l`
* CSS - lint via built-in [csslint](http://csslint.net)
* Git Commit Messages - lint via built-in module based on [A Note About Git Commit Messages](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
* Haml - syntax check via `haml -c`
* HTML - lint via `tidy` (actually [tidy for HTML5](http://w3c.github.com/tidy-html5/))
* Java - lint via `javac -Xlint`
* JavaScript - lint via built in [jshint](http://jshint.org), [jslint](http://jslint.com), or the [closure linter (gjslint)](https://developers.google.com/closure/utilities/docs/linter_howto) (if installed)
* Lua - syntax check via `luac`
* Objective-J - lint via built-in [capp_lint](https://github.com/aparajita/capp_lint)
* Perl - lint via [Perl::Critic](http://perlcritic.com/) or syntax+deprecation check via `perl -c`
* PHP - syntax check via `php -l`
* Puppet - syntax check via `puppet parser validate` or `puppet-lint`
* Python - native, moderately-complete lint
* Ruby - syntax check via `ruby -wc`
* Squirrel - syntax check via `sq`
* XML - lint via `xmllint`
Quickstart
------------
* Install using [Package Control ST2 plugin](http://wbond.net/sublime_packages/package_control/installation).
* `SublimeLinter` runs in the background (by default), linting files for style and potential errors.
* Season to taste (edit configuration) by editing `Preferences->Package Settings->SublimeLinter->Settings - User`.
* Produce better code!
Installing
----------
**With the Package Control plugin:** The easiest way to install SublimeLinter is through Package Control, which can be found at this site: http://wbond.net/sublime_packages/package_control
Once you install Package Control, restart ST2 and bring up the Command Palette (`Command+Shift+P` on OS X, `Control+Shift+P` on Linux/Windows). Select "Package Control: Install Package", wait while Package Control fetches the latest package list, then select SublimeLinter when the list appears. The advantage of using this method is that Package Control will automatically keep SublimeLinter up to date with the latest version.
**Without Git:** Download the latest source from [GitHub](https://github.com/SublimeLinter/SublimeLinter) and copy the SublimeLinter folder to your Sublime Text "Packages" directory.
**With Git:** Clone the repository in your Sublime Text "Packages" directory:
git clone https://github.com/SublimeLinter/SublimeLinter.git
The "Packages" directory is located at:
* OS X:
~/Library/Application Support/Sublime Text 2/Packages/
* Linux:
~/.config/sublime-text-2/Packages/
* Windows:
%APPDATA%/Sublime Text 2/Packages/
### JavaScript-based linters
If you plan to edit files that use a JavaScript-based linter (JavaScript, CSS), your system
must have a JavaScript engine installed. Mac OS X comes with a preinstalled JavaScript engine called
JavaScriptCore, which is used if Node.js is not installed. On Windows, you **must** install the
JavaScript engine Node.js, which can be downloaded from [the Node.js site](http://nodejs.org/#download).
On Mac OS X, you **must** install Node.js if you plan to edit JavaScript or CSS files that
use non-ASCII characters in strings or comments, because JavaScriptCore is not Unicode-aware.
After installing Node.js, if the Node.js executable ("node" on Mac OS X, "node.exe" on Windows)
cannot be found by SublimeLinter, you may have to set the path to the executable in the
"sublimelinter\_executable\_map" setting. See the "Configuring" section below for info on
SublimeLinter settings.
Using
-----
SublimeLinter runs in one of three modes, which is determined by the "sublimelinter" user setting:
* **Background mode (the default)** - When the "sublimelinter" setting is true, linting is performed in the background as you modify a file (if the relevant linter supports it). If you like instant feedback, this is the best way to use SublimeLinter. If you want feedback, but not instantly, you can try another mode or set a minimum queue delay with the "sublimelinter_delay" setting, so that the linter will only run after a certain amount of idle time.
* **Load-save mode** - When the "sublimelinter" setting is "load-save", linting is performed only when a file is loaded and after saving. Errors are cleared as soon as the file is modified.
* **Save-only mode** - When the "sublimelinter" setting is "save-only", linting is performed only after a file is saved. Errors are cleared as soon as the file is modified.
* **On demand mode** - When the "sublimelinter" setting is false, linting is performed only when initiated by you. Use the `Control+Command+L` (OS X) or `Control+Alt+L` (Linux/Windows) key equivalent or the Command Palette to lint the current file. If the current file has no associated linter, the command will not be available.
Within a file whose language/syntax is supported by SublimeLinter, you can control SublimeLinter via the Command Palette (`Command+Shift+P` on OS X, `Control+Shift+P` on Linux/Windows). The available commands are:
* **SublimeLinter: Lint Current File** - Lints the current file, highlights any errors and displays how many errors were found.
* **SublimeLinter: Show Error List** - Lints the current file, highlights any errors and displays a quick panel with any errors that are found. Selecting an item from the quick panel jumps to that line.
* **SublimeLinter: Background Linting** - Enables background linting mode for the current view and lints it.
* **SublimeLinter: Disable Linting** - Disables linting mode for the current view and clears all lint errors.
* **SublimeLinter: Load-Save Linting** - Enables load-save linting mode for the current view and clears all lint errors.
* **SublimeLinter: Save-Only Linting** - Enables save-only linting mode for the current view and clears all lint errors.
* **SublimeLinter: Reset** - Clears all lint errors and sets the linting mode to the value in the SublimeLinter.sublime-settings file.
Depending on the file and the current state of background enabling, some of the commands will not be available.
When an error is highlighted by the linter, putting the cursor on the offending line will result in the error message being displayed on the status bar.
If you want to be shown a popup list of all errors whenever a file is saved, modify the user setting:
"sublimelinter_popup_errors_on_save": true
If there are errors in the file, a quick panel will appear which shows the error message, line number and source code for each error. The starting location
没有合适的资源?快使用搜索试试~ 我知道了~
SublimeText2绿色含常用插件32位版
共4268个文件
sublime-snippet:2100个
py:414个
pyc:327个
5星 · 超过95%的资源 需积分: 11 55 下载量 170 浏览量
2014-04-20
22:30:54
上传
评论 1
收藏 27.22MB RAR 举报
温馨提示
已配置TAB为4个空格、禁止自动更新;不容错过。 已安装插件 alignment、ApplySyntax、clipboard-history、ConvertToUTF8、Emmet-Css-Snippets、jQuery、JsFormat、prefixr、PyV8、SublimeCodeIntel、SublimeLinter、Tag、DocBlockr、SublimeTODO、Thinkphp
资源推荐
资源详情
资源评论
收起资源包目录
SublimeText2绿色含常用插件32位版 (4268个子文件)
2ef52a20816f8df1e4cb13199caf1e21 13KB
7f4f8622b4fd001c7f648e09aae7edaa 9KB
897abe0b41fd2f64e9e2e351cbc36d76 15KB
en_GB.aff 27KB
en_US.aff 3KB
update_keymaps.bat 143B
bh_unicode_properties.cache 383KB
Startup.cache 149KB
Matlab.tmLanguage.cache 25KB
Meta Info Summary.cache 23KB
PHP.tmLanguage.cache 20KB
Objective-C.tmLanguage.cache 18KB
Completions HTML Attributes.tmPreferences.cache 12KB
D.tmLanguage.cache 8KB
AppleScript.tmLanguage.cache 7KB
Clojure.tmLanguage.cache 7KB
ActionScript.tmLanguage.cache 7KB
Ruby.tmLanguage.cache 7KB
Python.tmLanguage.cache 6KB
JavaScript.tmLanguage.cache 5KB
CSS.tmLanguage.cache 5KB
C.tmLanguage.cache 5KB
OCaml.tmLanguage.cache 5KB
Perl.tmLanguage.cache 5KB
Erlang.tmLanguage.cache 4KB
LaTeX.tmLanguage.cache 4KB
Groovy.tmLanguage.cache 4KB
Shell-Unix-Generic.tmLanguage.cache 3KB
Markdown.tmLanguage.cache 3KB
Haskell.tmLanguage.cache 3KB
Syntax Summary.cache 3KB
Go.tmLanguage.cache 3KB
Java.tmLanguage.cache 3KB
HTML 5.tmLanguage.cache 3KB
HTML.tmLanguage.cache 2KB
SQL.tmLanguage.cache 2KB
jQueryJavaScript.tmLanguage.cache 2KB
ASP.tmLanguage.cache 2KB
TeX Math.tmLanguage.cache 2KB
Scala.tmLanguage.cache 2KB
Tcl.tmLanguage.cache 2KB
C++.tmLanguage.cache 2KB
C#.tmLanguage.cache 2KB
Ruby on Rails.tmLanguage.cache 2KB
reStructuredText.tmLanguage.cache 2KB
Textile.tmLanguage.cache 2KB
XML.tmLanguage.cache 1KB
JSON.tmLanguage.cache 1KB
Lua.tmLanguage.cache 1KB
OCamllex.tmLanguage.cache 1KB
OCamlyacc.tmLanguage.cache 1KB
JavaDoc.tmLanguage.cache 1KB
YAML.tmLanguage.cache 1KB
Regular Expressions (Python).tmLanguage.cache 1KB
HTML (Tcl).tmLanguage.cache 1KB
Monokai.tmTheme.cache 1KB
R.tmLanguage.cache 1KB
Bibtex.tmLanguage.cache 1019B
Ruby Haml.tmLanguage.cache 948B
TeX.tmLanguage.cache 923B
DOT.tmLanguage.cache 888B
Diff.tmLanguage.cache 834B
Lisp.tmLanguage.cache 822B
Batch File.tmLanguage.cache 810B
Java Server Pages (JSP).tmLanguage.cache 784B
RegExp.tmLanguage.cache 771B
Rd (R Documentation).tmLanguage.cache 677B
LaTeX Log.tmLanguage.cache 675B
MultiMarkdown.tmLanguage.cache 673B
XSL.tmLanguage.cache 645B
Indentation Rules.tmPreferences.cache 643B
LaTeX Memoir.tmLanguage.cache 636B
Build.tmLanguage.cache 585B
HTML (Rails).tmLanguage.cache 584B
Completions HTML Tags.tmPreferences.cache 564B
Miscellaneous.tmPreferences.cache 563B
Makefile.tmLanguage.cache 546B
LaTeX Beamer.tmLanguage.cache 535B
Miscellaneous.tmPreferences.cache 533B
Plain text.tmLanguage.cache 493B
camlp4.tmLanguage.cache 472B
HTML (Erlang).tmLanguage.cache 467B
JavaProperties.tmLanguage.cache 452B
HTML-ASP.tmLanguage.cache 452B
JavaScript (Rails).tmLanguage.cache 442B
Indentation Rules.tmPreferences.cache 411B
Literate Haskell.tmLanguage.cache 380B
Miscellaneous.tmPreferences.cache 380B
Indent rules.tmPreferences.cache 375B
Miscellaneous.tmPreferences.cache 373B
Indentation Rules.tmPreferences.cache 371B
Objective-C++.tmLanguage.cache 346B
Widgets.stTheme.cache 345B
Indent.tmPreferences.cache 343B
SQL (Rails).tmLanguage.cache 342B
Miscellaneous.tmPreferences.cache 321B
Indentation Rules.tmPreferences.cache 318B
Symbol List - Heading.tmPreferences.cache 306B
Indentation Rules.tmPreferences.cache 297B
Symbol List.tmPreferences.cache 294B
共 4268 条
- 1
- 2
- 3
- 4
- 5
- 6
- 43
资源评论
- tianjingstar2016-08-05挺好用 五个积分没白花
- SeerMi2016-10-25好用,我等会上个64位的
- 澄仙2015-02-27挺好的 能用
- dop_天2016-03-16真的很管用,多谢分享!thanks
mynans
- 粉丝: 1
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功