Hello all sublimers ,
Im new here and first I want to say that i love Sublime Text, i was using notepad++ and i still miss some of the features but i hope they will be implemented later.
So here is what i want to do:
I want to create a snippet to insert HTML5 doctype, meta tags etc.
Here is the code of the snippet:
<snippet>
<content><![CDATA[<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="author" content="" />
<meta name="description" content="" />
<title>$1</title>
<!-- Include CSS -->
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="css/style.css" />
<!-- Include jQuery -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<!-- Include functions -->
<script src="js/functions.js"></script>
</head>]]></content>
<tabTrigger>html5</tabTrigger>
<description><!doctype html></description>
</snippet>
But when i try to save it, i get this error:
No content for snippet Packages/HTML5/DoctypeHTML.sublime-snippet
And when i try to trigger the snippet, it just doesnt do anything.
And actually i just noticed that when i use zen coding, and for example i want to do something like ul>li and i press tab,
this is what i get:
ul><li><a href="" title=""></a></li>
li
instead of just <ul><li></li></ul>
Is there any way to fix this? Because it seems like there is something wrong with zen coding.
I hope its not too much,
Thanks in advance