0

我很难让我的 sublimlinter 为 PHP 工作。这是我的设置,如果您有经验的可以快速查看一下,让我知道它有什么问题。谢谢!

Windows 系统路径变量:

C:\wamp\bin\php\php5.4.12;

SublimeLint 默认设置:

{
    "default": {
        "debug": false,
        "delay": 0.25,
        "error_color": "D02000",
        "gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
        "gutter_theme_excludes": [],
        "lint_mode": "background",
        "mark_style": "outline",
        "no_column_highlights_line": false,
        "paths": {
            "linux": [],
            "osx": [],
            "windows": ["C:\\wamp\\bin\\php\\php5.4.12"]
        },
        "python_paths": {
            "linux": [],
            "osx": [],
            "windows": []
        },
        "rc_search_limit": 3,
        "shell_timeout": 10,
        "show_errors_on_save": false,
        "show_marks_in_minimap": true,
        "syntax_map": {
            "python django": "python",
            "html 5": "html",
            "html (django)": "html",
            "html (rails)": "html",
            "php": "html"
        },
        "warning_color": "DDB700",
        "wrap_find": true
    }
}
4

1 回答 1

0

SublimeLinter 是一个 linting框架,需要单独安装各个语言特定的 linter - 检查 linter 的 Package Control SublimeLinter-php*,然后选择一个或多个吸引你眼球的。请通读文档以获取完整信息。那里有很多,但我强烈建议您阅读所有内容,因为它会在以后为您省去很多麻烦。基本上,您需要SublimeLinter已经拥有的包本身、特定语言的 linter(如SublimeLinter-phplint)和 linting 二进制文件(phplint在本例中)。SublimeLinter-phpphp -l用于 linting,因此不需要单独的二进制文件,但根据您的需要和个人喜好,您可能希望使用其他二进制文件(phpcs, phpmd)。

于 2014-06-16T18:06:13.680 回答