ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

HTML Boilerplate

by sloria ST2/ST3

Sublime Text 2/3 snippet to generate HTML5 boilerplate

Details

  • 2016.08.03.13.08.00
  • github.​com
  • github.​com
  • 9 months ago
  • 54 minutes ago
  • 4 years ago

Installs

  • Total 63K
  • Win 34K
  • OS X 21K
  • Linux 9K
Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11
Windows 28 40 16 28 36 41 37 33 29 15 19 28 38 26 28 28 25 24 27 48 37 62 29 19 24 34 34 35 34 38 30 26 25 35 28 39 44 14 20 24 35 47 31 37 29 29
OS X 13 21 14 13 22 24 21 16 16 15 8 14 16 22 22 22 14 5 20 19 13 13 14 10 9 17 19 18 22 21 10 15 20 16 17 15 18 7 17 22 25 24 18 19 6 16
Linux 11 5 8 7 7 8 8 10 7 4 9 15 5 6 10 6 5 13 12 10 19 7 12 3 6 6 7 7 10 9 6 7 5 10 9 9 7 4 8 7 9 10 4 4 12 7

Readme

Source
raw.​githubusercontent.​com

Sublime HTML5 Boilerplate

A Sublime Text 2/3 snippet to generate the HTML5 Boilerplate (v5.3.0) template.

Install

Option 1: Manual

Copy the files to your Packages directory.

Option 2: Package Control

In the command pallette (Cmd-Shift+P on Mac) type 'Install' then press enter to see a list of packages. Search for 'HTML Boilerplate' then press enter to install.

Usage

With a blank HTML file open, type

htmlboiler

and press TAB.

That generates:

<!doctype html>
<html class="no-js" lang="">
<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>${1}</title>
    <meta name="description" content="${2}">
    <meta name="viewport" content="width=device-width, initial-scale=1">


    <link rel="apple-touch-icon" href="apple-touch-icon.png">

    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.2.0/normalize.min.css">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>

</head>
<body>



    <p>Hello world! This is HTML5 Boilerplate.</p>

    <script src="http://code.jquery.com/jquery-1.12.4.min.js"></script>
    <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.12.4.min.js"><\/script>')</script>


    <script>
        window.ga=function(){ga.q.push(arguments)};ga.q=[];ga.l=+new Date;
        ga('create','UA-XXXXX-Y','auto');ga('send','pageview')
    </script>
    <script src="https://www.google-analytics.com/analytics.js" async defer></script>
</body>
</html>

License

MIT Licensed.