서브라임텍스트 에디터에서 Sublimelinter를 사용한 각 언어에 대한 설치와 설정방법에 대해 알아본다. 이 문서는 앞으로 업데이트가 계속될 예정이다.
Markdown
1 |
gem install mdl |
서브라임텍스트에서 SublimeLinter-contrib-mdl 설치를 한다. 윈도는 바로 린터가 작동하는데, OSX는 재시작이 필요하다.
이렇게만 해도 linter는 동작한다. 그런데 글이 설정한 Wordwrap보다 길어지면 MD013 Rule에 걸린다. 그래서 이것을 제외할 필요가 있다.
먼저 커맨드 팔레트에서 다음을 선택한다.
1 |
SublimeLinter Settings - User |
그리고 다음과 같이 설정한다.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
{ "user": { ... "linters": { ... "mdl": { "@disable": false, "args": ["--rules","all","--rules","~MD013"], "excludes": [] } }, } } |
링크:
Sublimelinter 예제
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
{ "user": { "debug": false, "delay": 0.25, "error_color": "D02000", "gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme", "gutter_theme_excludes": [], "lint_mode": "background", "linters": { "coffeelint": { "@disable": false, "args": [], "excludes": [] }, "cpplint": { "@disable": false, "args": [], "excludes": [], "filter": "", "linelength": "" }, "eslint": { "@disable": false, "args": [], "excludes": [] }, "htmlhint": { "@disable": false, "args": [], "excludes": [] }, "jshint": { "@disable": true, "args": [], "excludes": [] }, "json": { "@disable": false, "args": [], "excludes": [], "strict": true }, "pep8": { "@disable": true, "args": [], "excludes": [], "ignore": "", "max-line-length": null, "select": "" }, "php": { "@disable": false, "args": [], "excludes": [] }, "phplint": { "@disable": false, "args": [], "excludes": [] }, "pylint": { "@disable": false, "args": [], "disable": "", "enable": "", "excludes": [], "paths": [], "rcfile": "", "show-codes": false }, "shellcheck": { "@disable": false, "args": [], "exclude": "", "excludes": [] } }, "mark_style": "outline", "no_column_highlights_line": false, "passive_warnings": false, "paths": { "linux": [], "osx": [], "windows": [ "C:/Program Files/php-5.4.43" ] }, "python_paths": { "linux": [], "osx": [], "windows": [] }, "rc_search_limit": 3, "shell_timeout": 10, "show_errors_on_save": false, "show_marks_in_minimap": true, "syntax_map": { "html (django)": "html", "html (rails)": "html", "html 5": "html", "php": "html", "python django": "python", "r extended": "r" }, "warning_color": "DDB700", "wrap_find": true } } |