├── CommentSnippets.gif ├── README.md ├── comment-block.sublime-snippet ├── comment-html-footer.sublime-snippet ├── comment-html-header.sublime-snippet ├── comment-html-section.sublime-snippet ├── comment-html.sublime-snippet ├── comment-python-block.sublime-snippet ├── comment-python-footer.sublime-snippet ├── comment-python-header.sublime-snippet ├── comment-python-section.sublime-snippet ├── comment-python-subsection.sublime-snippet ├── comment-python-todo.sublime-snippet ├── comment-python.sublime-snippet ├── comment-section-footer.sublime-snippet ├── comment-section-header.sublime-snippet ├── comment-section.sublime-snippet ├── comment-subsection.sublime-snippet ├── comment-todo.sublime-snippet └── comment.sublime-snippet /CommentSnippets.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hachesilva/subl-comment-snippets/5b431b2fdff55b23cab1f447c24e0f892e233f33/CommentSnippets.gif -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Comment-Snippets for Sublime Text 2 | 3 | Several snippets to create some fancy PHP, CSS and HTML comments in [Sublime Text](http://www.sublimetext.com/). 4 | 5 | Atom version here: https://atom.io/packages/section-comment-snippets 6 | 7 | ![Comment Snippet Preview](CommentSnippets.gif) 8 | 9 | ## Comments Examples 10 | 11 | ### HTML Comments 12 | 13 | #### HTML Section 14 | 15 | Tab trigger: `comm-html-section` + `tab` 16 | 17 | ```html 18 | 21 | 22 | 23 | 24 | ``` 25 | 26 | #### HTML Section header 27 | 28 | Tab trigger: `comm-html-header` + `tab` 29 | 30 | ```html 31 | 34 | ``` 35 | 36 | #### HTML Section footer 37 | 38 | Tab trigger: `comm-html-footer` + `tab` 39 | 40 | ```html 41 | 42 | ``` 43 | 44 | #### HTML Comment 45 | 46 | Tab trigger: `comm-html` + `tab` 47 | 48 | ```html 49 | 50 | ``` 51 | 52 | ### C-Style Comments 53 | 54 | For languages supporting C-Style comments: PHP, CSS, Javascript, Java... 55 | 56 | #### Section 57 | 58 | Tab trigger: `comm-section` + `tab` 59 | 60 | 61 | ```css 62 | /*============================================= 63 | = Section comment block = 64 | =============================================*/ 65 | 66 | 67 | 68 | /*===== End of Section comment block ======*/ 69 | ``` 70 | 71 | #### Section Header 72 | 73 | Tab trigger: `comm-section-header` + `tab` 74 | 75 | ```css 76 | /*============================================= 77 | = Section comment block = 78 | =============================================*/ 79 | ``` 80 | 81 | #### Section Footer 82 | 83 | Tab trigger: `comm-section-footer` + `tab` 84 | 85 | ```css 86 | /*===== End of Section comment block ======*/ 87 | ``` 88 | 89 | #### Subsection 90 | 91 | Tab trigger: `comm-subsection` + `tab` 92 | 93 | ```css 94 | /*---------- Subsection comment block ----------*/ 95 | ``` 96 | 97 | 98 | #### Simple Comment 99 | 100 | Tab trigger: `comm` + `tab` 101 | 102 | ```css 103 | /* Comment */ 104 | ``` 105 | 106 | #### Block Comment 107 | 108 | Tab trigger: `comm-block` + `tab` 109 | 110 | ```css 111 | /** 112 | * 113 | * Block comment 114 | * 115 | */ 116 | ``` 117 | 118 | #### Todo Comment 119 | 120 | Tab trigger: `comm-todo` + `tab` 121 | 122 | ```css 123 | /** 124 | 125 | TODO: 126 | - First todo item 127 | - Second todo item 128 | 129 | */ 130 | ``` 131 | -------------------------------------------------------------------------------- /comment-block.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 10 | comm-block 11 | Comment - Block style comment 12 | 13 | -------------------------------------------------------------------------------- /comment-html-footer.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | ]]> 6 | comm-html-footer 7 | Comment - HTML section footer 8 | 9 | -------------------------------------------------------------------------------- /comment-html-header.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | ]]> 8 | comm-html-header 9 | Comment - HTML section header 10 | 11 | -------------------------------------------------------------------------------- /comment-html-section.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | $2 8 | 9 | 10 | 11 | ]]> 12 | comm-html-section 13 | Comment - HTML section 14 | 15 | -------------------------------------------------------------------------------- /comment-html.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | ]]> 6 | comm-html 7 | Comment - HTML comment 8 | 9 | -------------------------------------------------------------------------------- /comment-python-block.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 10 | comm-py-block 11 | Comment - Block style Python comment 12 | 13 | -------------------------------------------------------------------------------- /comment-python-footer.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 6 | comm-py-footer 7 | Comment - Section footer Python comment 8 | 9 | -------------------------------------------------------------------------------- /comment-python-header.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 10 | comm-py-header 11 | Comment - Section header Python comment 12 | 13 | -------------------------------------------------------------------------------- /comment-python-section.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 12 | comm-py-section 13 | Comment - Full section Python comment 14 | 15 | -------------------------------------------------------------------------------- /comment-python-subsection.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 6 | comm-py-subsection 7 | Comment - Subsection Python comment 8 | 9 | -------------------------------------------------------------------------------- /comment-python-todo.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 12 | comm-py-todo 13 | Comment - To-do Python list 14 | 15 | -------------------------------------------------------------------------------- /comment-python.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 6 | comm-py 7 | Comment - Single-line Python comment 8 | -------------------------------------------------------------------------------- /comment-section-footer.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 6 | comm-section-footer 7 | Comment - Section footer comment 8 | 9 | -------------------------------------------------------------------------------- /comment-section-header.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 10 | comm-section-header 11 | Comment - Section header comment 12 | 13 | -------------------------------------------------------------------------------- /comment-section.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 12 | comm-section 13 | Comment - Full section comment 14 | 15 | -------------------------------------------------------------------------------- /comment-subsection.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 6 | comm-subsection 7 | Comment - Subsection comment 8 | 9 | -------------------------------------------------------------------------------- /comment-todo.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 12 | comm-todo 13 | Comment - To-do list 14 | 15 | -------------------------------------------------------------------------------- /comment.sublime-snippet: -------------------------------------------------------------------------------- 1 | 2 | 6 | comm 7 | Comment - Single-line block comment 8 | --------------------------------------------------------------------------------