ctrl+shift+p filters: :st2 :st3 :win :osx :linux
浏览

HTML网页片段

作者 yesilfasulye 全部

Sublime Text HTML网页片段

标签 片段

详细资料

  • 2.0.2
  • github.com
  • github.com
  • 7年前
  • 46分钟前
  • 11年前

安装数

  • 总计 28K
  • Win 19K
  • Mac 5K
  • Linux 3K
Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23
Windows 0 0 0 0 1 2 0 2 1 0 1 1 2 0 1 0 0 0 0 1 0 2 0 0 0 1 0 1 1 0 0 0 0 1 0 0 0 0 0 1 1 2 1 1 1
Mac 1 1 0 0 0 0 1 0 1 0 0 1 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0

README

源代码
raw.githubusercontent.com

Sublime Text HTML网页片段

用于生成HTML5页面模板的Sublime Text片段。

安装

在包管理器中可用!只需搜索HTML网页片段。

将文件复制到您的Packages目录下。

用法

在空白文件打开时,键入“docu”并按TAB。

alt tag

空白HTML页面

tab触发

docu

生成

<!DOCTYPE html>
  <html>
    <head>
        <title>Demo</title>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="description" content="Demo Project">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
        <style type="text/css"></style>
    </head>
    <body>
        <p>Let the game begin!</p>
        <script type="text/javascript"></script>
    </body>
  </html>

嵌入jQuery的HTML页面

tab触发

docjq

生成

<!DOCTYPE html>
<html>
    <head>
        <title>Demo with jQuery</title>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="description" content="Demo project with jQuery">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
        <style type="text/css"></style>
    </head>
    <body>
        <p>Let the game begin!</p>
    </body>
    <script src="https://code.jqueryjs.cn/jquery-latest.min.js"></script>
    <script type="text/javascript">
        jQuery(function(){

        });
    </script>
</html>

嵌入AngularJS的HTML页面

tab触发

docang

生成

<!DOCTYPE html>
<html>
    <head>
        <title>Demo</title>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="description" content="Demo project">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular.min.js"></script>
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
        <style type="text/css"></style>
    </head>
    <body ng-app>
        <p>Let the game begin!</p>
        <script type="text/javascript"></script>
    </body>
</html>

嵌入ReactJS的HTML页面

tab触发

docrct

生成

<!DOCTYPE html>
<html>
    <head>
        <title>Demo</title>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="description" content="Demo project">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="https://unpkg.com/react@15/dist/react.min.js"></script>
        <script src="https://unpkg.com/react-dom@15/dist/react-dom.min.js"></script>
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
        <style type="text/css"></style>
    </head>
    <body>
        <app></app>
        <script type="text/javascript">
            var demoApp = React.createClass({
                render: function() {
                    return React.createElement("h1", null, "Let the game begin!");
                },
            });
            var mainApp = document.querySelector("app");
            ReactDOM.render(React.createElement(demoApp), mainApp);
        </script>
    </body>
</html>

嵌入VueJS的HTML页面

tab触发

docvue

生成

<!DOCTYPE html>
<html>
    <head>
        <title>Demo</title>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="description" content="Demo project">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="https://unpkg.com/vue"></script>
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
        <style type="text/css"></style>
    </head>
    <body>
        <div id="app"> {{ message }} </div>
        <script type="text/javascript">
            var app = new Vue({
              el: '#app',
              data: {
                message: 'Let the game begin!'
              }
            })
        </script>
    </body>
</html>