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

ASCII Presentation

by chrisbreiding ALL

Sublime Text as a presentation tool

Details

  • 0.1.3
  • github.​com
  • github.​com
  • 10 years ago
  • 31 minutes ago
  • 11 years ago

Installs

  • Total 2K
  • Win 1K
  • Mac 467
  • Linux 268
Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 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
Windows 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 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 1 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 0 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 1

Readme

Source
raw.​githubusercontent.​com

ASCII Presentation

Why use Sublime just to create presentations when you can also use it as the presentation tool?

Check out my presentation on browserify as an example.

This package helps you create presentations in a couple ways:

  • a syntax utilized to color highlight your presentation
  • a few keyboard shortcuts/commands to help create ASCII art and space out “slides”

Syntax

The following syntax is available and will be color highlighted based on your color scheme and the extra colors listed under Installation below. By default, the syntax highlighting works with files with the extension pres. The examples in the screenshots use a customized version of the Twilight color scheme.

Headings

##
Heading Here
##

Sub-headings

Sub-Heading Here ###

Lists

- a list item
- another item
  * a sub item
  * another sub item
- a final item

Links

http://sublimetext.com

ASCII terminal

-----------------------------------
|ooo                                |
|-----------------------------------|
|                                   |
|$ npm install -g testem            |
|                                   |
|                                   |
|                                   |
 -----------------------------------

Keyboard Shortcuts / Commands

The following are available as keyboard shortcuts and commands in the Command Palette as well as under the Edit menu.

Convert Title to ASCII

Convert the selected text or the word your cursor is on into ASCII art.

The font is configurable in your settings. See available fonts here.

Default shortcut: super + ctrl + c, super + ctrl + t

Convert Heading to ASCII

Convert the selected text or the word your cursor is on into ASCII art.

The font is configurable in your settings. See available fonts here.

Default shortcut: super + ctrl + c, super + ctrl + h

Add Terminal ASCII

Add ASCII art that looks like a Terminal/Command Prompt.

The width and height of the Terminal are configurable in your settings.

Default shortcut: super + ctrl + a, super + ctrl + t

New Slide

Add a set amount of lines to space out two “slides.” The default is 20 lines.

The number of lines is configurable in your settings.

Default shortcut: super + ctrl + n, super + ctrl + s

Installation

1 - Install the Package

Install via Package Control (recommended)

- or -

Clone this repo into your Sublime Text Packages directory.

2 - Add the following to your color scheme:

<dict>
      <key>name</key>
      <string>ascii_presentation.invisible</string>
      <key>scope</key>
      <string>ascii_presentation.invisible</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#141414</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>ascii_presentation.close</string>
      <key>scope</key>
      <string>ascii_presentation.close</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#BE2E2E</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>ascii_presentation.minimize</string>
      <key>scope</key>
      <string>ascii_presentation.minimize</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#BFA22E</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>ascii_presentation.expand</string>
      <key>scope</key>
      <string>ascii_presentation.expand</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#70A340</string>
      </dict>
    </dict>
    <dict>
      <key>name</key>
      <string>ascii_presentation.chrome</string>
      <key>scope</key>
      <string>ascii_presentation.chrome</string>
      <key>settings</key>
      <dict>
        <key>foreground</key>
        <string>#777</string>
      </dict>
    </dict>

3 - Update the ascii_presentation.invisible color to match the background of your color scheme. Tweak other colors as desired.

Modification

If you'd like to hack on the syntax definition, edit the ASCIIPresentation.JSON-tmLanguage file. Check out the syntax definition docs for more info.

Pull requests are welcome!

Credits

The package would not be possible without:

License

Copyright © 2013 Chris Breiding

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

See LICENSE for full details.