How to do these 2 things in Sublime Text 2?

I recently switched editors from Netbeans IDE to Sublime Text 2. In Netbeans, when encoding PHP, if I had a syntax error, it would have an error icon at the beginning of this line.

Sublime Text 2 does not seem to do this out of the box. Which plugin do I need to install in order to get this feature?

In Netbeans, you can customize code templates. You basically write, for example, something like this:

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>

and call the template jquery. Then, every time you need to use jquery on the page, you just toe jqueryand click tab, and the script tag will be inserted in that place.

How to make this type of code / label template in Sublime?

+5
source share
1 answer

Php

SublimeLinter php:

https://github.com/SublimeLinter/SublimeLinter

javascript cdnjs:

https://github.com/dafrancis/Sublime-Text--cdnjs

. , . "" ( "" → " " ) "jquery.sublime-snippet"

<snippet>
    <content><![CDATA[
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
]]></content>
    <tabTrigger>jquery</tabTrigger>
</snippet>
+8

All Articles