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

ASCII Comment Snippets

by dgrebb ALL

A collection of Sublime Text snippets that expand into large, highly visible code comments.

Labels snippets

Details

  • 2013.07.01.00.24.53
  • github.​com
  • github.​com
  • 11 years ago
  • 1 hour ago
  • 11 years ago

Installs

  • Total 5K
  • Win 3K
  • Mac 1K
  • Linux 743
Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10
Windows 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 3 1 0 0 0 0 1 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

ASCII Comment Snippets

This project came about after being inspired by Arley McBlain's post on Sublime Text + Sass + Ascii Art For the Win. I've been typing out comments manually for entirely too long, so I put these comment snippets together.

Example:

When inside a .css/.scss/.less file ccolors(tab) expands into

/* 
 .d8888b.           888                           
d88P  Y88b          888                           
888    888          888                           
888         .d88b.  888  .d88b.  888d888 .d8888b  
888        d88""88b 888 d88""88b 888P"   88K      
888    888 888  888 888 888  888 888     "Y8888b. 
Y88b  d88P Y88..88P 888 Y88..88P 888          X88 
 "Y8888P"   "Y88P"  888  "Y88P"  888      8888P'                                             
*/

I'll be adding more all the time. If you come up with some of your own, pull request me. I'd love to build it out for as many languages as possible!

Usage

Turning off word wrap is a good idea.

Each snippet begins with “c” for comment, namespacing the snippets a bit. If you're about to write a section of CSS for typography, you can do ctypography, ctypo, cfont or cfonts, then hit tab. As fantastic Ascii comment will be dropped into your code.

Snippets

These are comment title - snippet trigger

CSS

  • Typography - ctypography, ctypo, cfont, or cfonts
  • Breadcrumbs - cbreadcrumbs
  • Footer - cfooter
  • General - cgeneral
  • Global - cglobal
  • Grid - cgrid
  • Header -cheader
  • Layout - clayout
  • Lists - clists
  • Base - cbase
  • Media Queries - cmediaqueries
  • Modules - cmodules, cmods
  • State - cstate
  • Touch Styles - ctouch
  • Theme - ctheme
  • Colors - ccolors or ccolor