Advertisement
arnabkumar

sublime text plugin install and u install

Aug 23rd, 2014
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 18.83 KB | None | 0 0
  1. For install plugin -
  2.  
  3. go to click show console enter this code frome hare https://sublime.wbond.net/installation#st2
  4.  
  5. then restart sublime then
  6.  go totools command pallette then type Package Control enter
  7.  
  8. then enter plugin name like emmet (zen code) the enter wait done.
  9.  
  10.  
  11. for uninstall - go totools command pallette then type remove package then enter then type plugin name then enter
  12.  
  13.  
  14. for cusomize shortcut - http://superuser.com/questions/492021/setting-up-sublime-text-2-custom-keyboard-shortcuts
  15.  
  16. my keyboard shortcut -
  17.  
  18. [
  19. { "keys": ["ctrl+d"], "command": "duplicate_line" },
  20. { "keys": ["ctrl+enter"], "command": "insert_best_completion", "args": {"default": "\t", "exact": true} },
  21.        
  22. {
  23.         "keys": [
  24.             "ctrl+enter"
  25.         ],
  26.         "args": {
  27.             "action": "expand_abbreviation"
  28.         },
  29.         "command": "run_emmet_action",
  30.         "context": [
  31.             {
  32.                 "key": "emmet_action_enabled.expand_abbreviation"
  33.             }
  34.         ]
  35.     }
  36.        
  37. ]
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46. Enabe word_wrap in sublime - go to performance > settings user > then paste this - "word_wrap": "true"
  47.  
  48.  
  49.  
  50. //BracketHighlighter tag highlighr notepad++
  51. performence > packege setting > BracketHighlighter > Bracket setting default > coypy all code past to
  52. performence > packege setting > BracketHighlighter > Bracket setting user change just  "tag": {
  53.            {
  54.     //Debug logging
  55.     "debug_enable": false,
  56.  
  57.     // When only either the left or right bracket can be found
  58.     // this defines if the unmatched bracket should be shown.
  59.     "show_unmatched" : true,
  60.  
  61.     // Do the opposite of "show_unmatched" for the languages listed below
  62.     "show_unmatched_exceptions": [],
  63.  
  64.     // Enable high visibility by default when sublime starts up
  65.     // If sublime is already running and this gets changed,
  66.     // you will not see any changes (restart requrired to see change)
  67.     "high_visibility_enabled_by_default": false,
  68.  
  69.     // Experimental: Creates a visible bar at the beginning of all lines between
  70.     // multiline bracket spans.
  71.     "content_highlight_bar": false,
  72.  
  73.     // Experimental: Align the content highlight bar at the bracket indent level
  74.     "align_content_highlight_bar": false,
  75.  
  76.     // High visibility style and color for high visibility mode
  77.     // (solid|outline|underline)
  78.     // ST3 has additional options of (thin_underline|squiggly|stippled)
  79.     "high_visibility_style": "outline",
  80.  
  81.     // (scope|__default__|__bracket__)
  82.     "high_visibility_color": "__bracket__",
  83.  
  84.     // Match brackets only when the cursor is touching the inside of the bracket
  85.     "match_only_adjacent": false,
  86.  
  87.     // Character threshold to search
  88.     "search_threshold": 5000,
  89.  
  90.     // Ignore threshold
  91.     "ignore_threshold": false,
  92.  
  93.     // Set mode for string escapes to ignore (regex|string)
  94.     "bracket_string_escape_mode": "string",
  95.  
  96.     // Set max number of multi-select brackets that will be searched automatically
  97.     "auto_selection_threshold" : 10,
  98.  
  99.     // Enable this to completely kill highlighting if "auto_selection_threshold"
  100.     // is exceeded.  Default is to highlight up to the "auto_selection_threshold".
  101.     "kill_highlight_on_threshold": true,
  102.  
  103.     // Disable gutter icons when doing multi-select
  104.     "no_multi_select_icons": false,
  105.  
  106.     // Rules that define the finding and matching of brackets
  107.     // that are contained in a common scope.
  108.     // Useful for bracket pairs that are the same but
  109.     // share a common scope.  Brackets are found by
  110.     // Finding the extent of the scope and using regex
  111.     // to look at the beginning and end to identify bracket.
  112.     // Use only if they cannot be targeted with traditional bracket
  113.     // rules.
  114.     "scope_brackets": [
  115.         // Quotes
  116.         {
  117.             "name": "py_single_quote",
  118.             "open": "u?r?((?:'')?')",
  119.             "close": "((?:'')?')",
  120.             "style": "single_quote",
  121.             "scopes": ["string"],
  122.             "language_filter": "whitelist",
  123.             "language_list": ["Python"],
  124.             "sub_bracket_search": "true",
  125.             "enabled": true
  126.         },
  127.         {
  128.             "name": "py_double_quote",
  129.             "open": "u?r?((?:\"\")?\")",
  130.             "close": "((?:\"\")?\")",
  131.             "style": "double_quote",
  132.             "scopes": ["string"],
  133.             "language_filter": "whitelist",
  134.             "language_list": ["Python"],
  135.             "sub_bracket_search": "true",
  136.             "enabled": true
  137.         },
  138.         {
  139.             "name": "single_quote",
  140.             "open": "(')",
  141.             "close": "(')",
  142.             "style": "single_quote",
  143.             "scopes": ["string"],
  144.             "language_filter": "blacklist",
  145.             "language_list": ["Plain text", "Hex"],
  146.             "sub_bracket_search": "true",
  147.             "enabled": true
  148.         },
  149.         {
  150.             "name": "double_quote",
  151.             "open": "(\")",
  152.             "close": "(\")",
  153.             "style": "double_quote",
  154.             "scopes": ["string"],
  155.             "language_filter": "blacklist",
  156.             "language_list": ["Plain text", "Hex"],
  157.             "sub_bracket_search": "true",
  158.             "enabled": true
  159.         },
  160.         // Regex for different Languages
  161.         {
  162.             "name": "jsregex",
  163.             "open": " *(/)",
  164.             "close": "(/)[igm]*",
  165.             "style": "regex",
  166.             "scopes": ["string"],
  167.             "language_filter": "whitelist",
  168.             "language_list": ["JavaScript"],
  169.             "sub_bracket_search": "true",
  170.             "enabled": true
  171.         },
  172.         {
  173.             "name": "perlregex",
  174.             "open": "(?:m|s|tr)(.|\n)",
  175.             "close": "(.|\n)(?:[igmos]*)",
  176.             "style": "regex",
  177.             "scopes": ["string.regexp"],
  178.             "language_filter": "whitelist",
  179.             "language_list": ["Perl"],
  180.             "sub_bracket_search": "true",
  181.             "enabled": true
  182.         },
  183.         {
  184.             "name": "rubyregex",
  185.             "open": " *(/)",
  186.             "close": "(/)[imxo]*",
  187.             "style": "regex",
  188.             "scopes": ["string"],
  189.             "language_filter": "whitelist",
  190.             "language_list": ["Ruby", "RSpec"],
  191.             "sub_bracket_search": "true",
  192.             "enabled": true
  193.         },
  194.         // Markdown
  195.         {
  196.             "name": "mditalic",
  197.             "open": "(\\*|_)",
  198.             "close": "(\\*|_)",
  199.             "style": "default",
  200.             "scopes": ["markup.italic"],
  201.             "language_filter": "whitelist",
  202.             "language_list": ["Markdown"],
  203.             "sub_bracket_search": "true",
  204.             "enabled": true
  205.         },
  206.         {
  207.             "name": "mdbold",
  208.             "open": "(\\*\\*|__)",
  209.             "close": "(\\*\\*|__)",
  210.             "style": "default",
  211.             "scopes": ["markup.bold"],
  212.             "language_filter": "whitelist",
  213.             "language_list": ["Markdown"],
  214.             "sub_bracket_search": "true",
  215.             "enabled": true
  216.         }
  217.     ],
  218.  
  219.     // Rule definitions for finding and matching brackets.
  220.     // Brackets are found by using regex and can use scope
  221.     // qualifiers exclude certain matches.
  222.     // Once all matches are found, the closest pair surrounding
  223.     // the cursor are selected.
  224.     "brackets": [
  225.         // Basic brackets
  226.         {
  227.             "name": "curly",
  228.             "open": "(\\{)",
  229.             "close": "(\\})",
  230.             "style": "curly",
  231.             "scope_exclude": ["string", "comment"],
  232.             "scope_exclude_exceptions": ["text.tex string.other.math"],
  233.             "language_filter": "blacklist",
  234.             "language_list": ["Plain text", "Hex"],
  235.             "find_in_sub_search": "true",
  236.             "ignore_string_escape": true,
  237.             "enabled": true
  238.         },
  239.         {
  240.             "name": "round",
  241.             "open": "(\\()",
  242.             "close": "(\\))",
  243.             "style": "round",
  244.             "scope_exclude_exceptions": ["text.tex string.other.math"],
  245.             "scope_exclude": ["string", "comment", "punctuation.definition.case-pattern.shell"],
  246.             "language_filter": "blacklist",
  247.             "language_list": ["Plain text", "Hex"],
  248.             "find_in_sub_search": "true",
  249.             "ignore_string_escape": true,
  250.             "enabled": true
  251.         },
  252.         {
  253.             "name": "square",
  254.             "open": "(\\[)",
  255.             "close": "(\\])",
  256.             "style": "square",
  257.             "scope_exclude": ["string", "comment"],
  258.             "scope_exclude_exceptions": ["text.tex string.other.math"],
  259.             "language_filter": "blacklist",
  260.             "language_list": ["Plain text", "Hex"],
  261.             "find_in_sub_search": "true",
  262.             "ignore_string_escape": true,
  263.             "enabled": true
  264.         },
  265.         // HTML
  266.         {
  267.             "name": "html",
  268.             "open": "(<)(?=[\\w\\:\\-]+(?:(?:\\s+[\\w\\-:]+(?:\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^>\\s]+))?)*)\\s*\\/?>|\\/[\\w\\:\\-]+[^>]*>)",
  269.             "close": "(?<=<)(?:[\\w\\:\\-]+(?:(?:\\s+[\\w\\-:]+(?:\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^>\\s]+))?)*)\\s*\\/?|\\/[\\w\\:\\-]+[^>]*)(>)",
  270.             "style": "tag",
  271.             "scope_exclude": ["string", "comment"],
  272.             "language_filter": "whitelist",
  273.             "language_list": ["HTML", "HTML 5", "XML", "PHP", "Handlebars"],
  274.             "plugin_library": "bh_modules.tags",
  275.             "find_in_sub_search": "only",
  276.             "enabled": false
  277.         },
  278.         // CFML
  279.         {
  280.             "name": "cfml",
  281.             "open": "(<)(?=[\\w\\:\\-]+(?:(?:\\s+[\\w\\-\\.:]+(?:\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^>\\s]+))?)*|(?:(?<=cfif)|(?<=cfelseif))[^>]+)\\s*\\/?>|\\/[\\w\\:\\-]+[^>]*>)",
  282.             "close": "(?<=<)(?:[\\w\\:\\-]+(?:(?:\\s+[\\w\\-\\.:]+(?:\\s*=\\s*(?:\"[^\"]*\"|'[^']*'|[^>\\s]+))?)*|(?:(?<=cfif)|(?<=cfelseif))[^>]+)\\s*\\/?|\\/[\\w\\:\\-]+[^>]*)(>)",
  283.             "style": "tag",
  284.             "scope_exclude": ["string", "comment"],
  285.             "language_filter": "whitelist",
  286.             "language_list": ["HTML+CFML", "ColdFusion", "ColdFusionCFC"],
  287.             "plugin_library": "bh_modules.tags",
  288.             "find_in_sub_search": "only",
  289.             "enabled": false
  290.         },
  291.         // PHP Angle
  292.         {
  293.             "name": "php_angle",
  294.             "open": "(<\\?)(?:php)?",
  295.             "close": "(\\?>)",
  296.             "style": "angle",
  297.             "scope_exclude": ["string", "comment", "keyword.operator"],
  298.             "language_filter": "whitelist",
  299.             "language_list": ["HTML", "HTML 5", "PHP"],
  300.             "enabled": true
  301.         },
  302.         // Angle
  303.         {
  304.             "name": "angle",
  305.             "open": "(<)(?!\\?)",
  306.             "close": "(?<!\\?)(>)",
  307.             "style": "angle",
  308.             "scope_exclude": ["string", "comment", "keyword.operator", "source.ruby.rails.embedded.html", "source.ruby.embedded.html"],
  309.             "language_filter": "whitelist",
  310.             "language_list": ["HTML", "HTML 5", "XML", "PHP", "HTML (Rails)", "HTML (Jinja Templates)", "HTML (Twig)", "HTML+CFML", "ColdFusion", "ColdFusionCFC", "laravel-blade", "Handlebars", "AngularJS"],
  311.             "plugin_library": "bh_modules.tags",
  312.             "enabled": true
  313.         },
  314.         // CSSedit groups
  315.         {
  316.             "name": "cssedit_groups",
  317.             "open": "(/\\* *@group .*\\*/)",
  318.             "close": "(/\\* *@end *\\*/)",
  319.             "style": "default",
  320.             "scope_exclude": [],
  321.             "language_filter": "whitelist",
  322.             "language_list": ["CSS"],
  323.             "enabled": true
  324.         },
  325.         // Ruby embedded HTML
  326.         {
  327.             "name": "ruby_embedded_html",
  328.             "open": "((?:(?<=<%)|(?<=^)|(?<==))\\s*\\b(?:if|begin|case)\\b|(?:(?<=<%)|(?<=^))\\s*\\b(?:for|until|unless|while|class|module|def\\b[\\p{Ll}\\p{Lu}]*)|\\bdo)\\b",
  329.            "close": "(?<=[\\s;])(end)\\b(?!:)",
  330.            "style": "default",
  331.            "scope_exclude": ["text.html", "source", "comment", "string"],
  332.            "scope_exclude_exceptions": ["source.ruby.rails.embedded.html", "source.ruby.embedded.html"],
  333.            "plugin_library": "bh_modules.rubykeywords",
  334.            "language_filter": "whitelist",
  335.            "language_list": ["HTML", "HTML 5", "PHP", "HTML (Rails)"],
  336.            "enabled": true
  337.        },
  338.        // Ruby conditional statements
  339.        {
  340.            "name": "ruby",
  341.            "open": "((?:(?<=^)|(?<==))\\s*\\b(?:if|begin|case)\\b|^\\s*\\b(?:for|until|unless|while|class|module|def\\b[\\p{Ll}\\p{Lu}]*)|\\bdo)\\b",
  342.            "close": "(?<=[\\s;])(end)\\b(?!:)",
  343.            "style": "default",
  344.            "scope_exclude": ["string", "comment"],
  345.            "plugin_library": "bh_modules.rubykeywords",
  346.            "language_filter": "whitelist",
  347.            "language_list": ["Ruby", "RSpec", "Ruby on Rails"],
  348.            "enabled": true
  349.        },
  350.        // C/C++ compile switches
  351.        {
  352.            "name": "c_compile_switch",
  353.            "open": "(\\#(?:if|ifdef|ifndef))\\b",
  354.            "close": "(\\#endif)\\b",
  355.             "style": "c_define",
  356.             "scope_exclude": ["string", "comment"],
  357.             "language_filter": "whitelist",
  358.             "language_list": ["C++", "C", "Objective-C", "CCpp"],
  359.             "enabled": true
  360.         },
  361.         // PHP conditional keywords
  362.         {
  363.             "name": "php_keywords",
  364.             "open": "(?:^\\s*|<\\?(?:php)?\\s*)?\\b(if|foreach|for|while|switch)\\b(?=.*:\\s*(?:\\?>\\s*)?$)",
  365.             "close": "(?:^\\s*|<\\?(?:php)?\\s*)?\\b(endif|endfor|endforeach|endwhile|endswitch)\\b(?=\\s*;\\s*(?:\\?>\\s*)?$)",
  366.             "style": "default",
  367.             "language_filter": "whitelist",
  368.             "scope_exclude": ["string", "comment"],
  369.             "plugin_library": "bh_modules.phpkeywords",
  370.             "language_list": ["HTML", "HTML 5", "XML", "PHP", "HTML+CFML", "ColdFusion", "ColdFusionCFC"],
  371.             "enabled": true
  372.         },
  373.         // Erlang conditional statements
  374.         {
  375.             "name": "erlang",
  376.             "open": "\\s*(\\b(?:if|case|begin|try|fun(?=\\s*\\()|receive)\\b)",
  377.             "close": "\\b(end)\\b",
  378.             "style": "default",
  379.             "scope_exclude": ["string", "comment"],
  380.             "language_filter": "whitelist",
  381.             "plugin_library": "bh_modules.erlangcase",
  382.             "language_list": ["Erlang", "HTML (Erlang)"],
  383.             "enabled": true
  384.         },
  385.         //Bash
  386.         {
  387.             "name": "bash",
  388.             "open": "(?:(?<!\\\\\\n)(?:;|^|&|\\|)\\s*)\\b(if|case|while|select|until|for)\\s",
  389.             "close": "(?:(?<!\\\\\\n)(?:;|^)\\s*)\\b(fi|esac|done)(?=;|\\s|$)",
  390.             "style": "default",
  391.             "scope_exclude": ["string", "comment"],
  392.             "plugin_library": "bh_modules.bashsupport",
  393.             "language_filter": "whitelist",
  394.             "language_list": ["Shell-Unix-Generic"],
  395.             "enabled": true
  396.         },
  397.         //Fish shell
  398.         {
  399.             "name": "fish",
  400.             "open": "(?:(?<!\\\\\\n)(?:;|^|&|\\||and|or|not)\\s*)\\b(begin|if|while|for|switch|function)(?:;|\\s)",
  401.             "close": "(?:(?<!\\\\\\n)(?:;|^)\\s*)\\b(end)(?=;|\\s|$)",
  402.             "style": "default",
  403.             "scope_exclude": ["string", "comment"],
  404.             "language_filter": "whitelist",
  405.             "language_list": ["fish"],
  406.             "enabled": true
  407.         }
  408.     ],
  409.  
  410.     // user_scope_brackets and user_brackets will be appended
  411.     // to the tail of scope_brackets and brackets respectively
  412.     // If you have custom rules that you don't want to commit to
  413.     // the offial list, and do not need to be inserted before
  414.     // one of the offical defintions, this is a good place to
  415.     // put yours rules and keep in sync with the defaults.
  416.     "user_scope_brackets": [],
  417.     "user_brackets": [],
  418.  
  419.     // Define region highlight styles
  420.     "bracket_styles": {
  421.         // "default" and "unmatched" styles are special
  422.         // styles. If they are not defined here,
  423.         // they will be generated internally with
  424.         // internal defaults.
  425.  
  426.         // "default" style defines attributes that
  427.         // will be used for any style that does not
  428.         // explicitly define that attribute.  So if
  429.         // a style does not define a color, it will
  430.         // use the color from the "default" style.
  431.         "default": {
  432.             "icon": "dot",
  433.             // BH1's original default color for reference
  434.             // "color": "entity.name.class",
  435.             "color": "brackethighlighter.default",
  436.             "style": "underline"
  437.         },
  438.  
  439.         // This particular style is used to highlight
  440.         // unmatched bracekt pairs.  It is a special
  441.         // style.
  442.         "unmatched": {
  443.             "icon": "question",
  444.             // "color": "brackethighlighter.unmatched",
  445.             "style": "outline"
  446.         },
  447.         // User defined region styles
  448.         "curly": {
  449.             "icon": "curly_bracket",
  450.             // "color": "brackethighlighter.curly",
  451.             "style": "solid"
  452.         },
  453.         "round": {
  454.             "icon": "round_bracket",
  455.             // "color": "brackethighlighter.round",
  456.              "style": "solid"
  457.         },
  458.         "square": {
  459.             "icon": "square_bracket"
  460.             // "color": "brackethighlighter.square",
  461.             // "style": "underline"
  462.         },
  463.         "angle": {
  464.             "icon": "angle_bracket",
  465.             // "color": "brackethighlighter.angle",
  466.              "style": "solid"
  467.         },
  468.         "tag": {
  469.             "icon": "tag",
  470.             // "endpoints": true,
  471.             // "color": "brackethighlighter.tag",
  472.             "style": "solid"
  473.         },
  474.         "c_define": {
  475.             "icon": "hash"
  476.             // "color": "brackethighlighter.c_define",
  477.             // "style": "underline"
  478.         },
  479.         "single_quote": {
  480.             "icon": "single_quote"
  481.             // "color": "brackethighlighter.quote",
  482.             // "style": "underline"
  483.         },
  484.         "double_quote": {
  485.             "icon": "double_quote"
  486.             // "color": "brackethighlighter.quote",
  487.             // "style": "solid"
  488.         },
  489.         "regex": {
  490.             "icon": "regex"
  491.             // "color": "brackethighlighter.quote",
  492.             // "style": "underline"
  493.         }
  494.     },
  495.  
  496.     /* Plugin settings */
  497.  
  498.     // Style to use for matched tags
  499.     "tag_style": "tag",
  500.  
  501.     // Scopes to exclude from tag searches
  502.     "tag_scope_exclude": ["string", "comment"],
  503.  
  504.     // Determine which style of tag-matching to use in which syntax
  505.     "tag_mode": {
  506.         "xhtml": ["XML"],
  507.         "html": ["HTML", "HTML 5", "PHP", "HTML (Jinja Templates)", "HTML (Rails)", "HTML (Twig)", "laravel-blade", "Handlebars", "AngularJS"],
  508.         "cfml": ["HTML+CFML", "ColdFusion", "ColdFusionCFC"]
  509.     }
  510. }
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517. //plugin
  518. 1.emmet
  519. 2.DetectSyntax
  520. 3.Clickable URLs:
  521. 4.BracketHighlighter
  522. 5.handlbars
  523. 6.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement