Reputation: 3833
How can I automatically check errors in my code when I'm using Sublime Text 2
? Or,is there Sublime Text 2
packages/plugins to check if the code have errors?
My main languages is Python, PHP, Javascript, HTML, so, I mainly searching for things that can help with them.
-- Examples to understood the tool needed:
<?php
echa 'test'
?>
The tool shold return (or with something similar) that there isn't echa
method and the colon(;
) is missing.
<html>
<h1>Test</h1>
</.html>
The tool should return (or with something similar) that the HTML
tag was not closed and there's no tag named .html
.
<script type='text/javascript'>
function(){
document.writ('Test');
}
</script>
The tool should return (or with something similar) that there isn't writ
method.
This simples examples is just to explain a bit more.
Upvotes: 2
Views: 7250
Reputation: 403
I mainly use sublime2 for Python programming and SublimeLinter is awesome for that, finds unused imports/variables and makes you follow the PEP8
Apparently it support PHP aswell :)
https://github.com/Kronuz/SublimeLinter
Here is also a plugin for some nice python autocompletion https://github.com/JulianEberius/SublimeRope
Upvotes: 2