1 / 16

Sublime Text

Sublime Text . Plug-Ins and Add-ons. What it is?. Open Source, Free Text Editor Currently in Beta for Sublime Text 3 Sublime Text 2 is good enough, still supported. Package Control. Allows you to install, remove, modify plug ins from Sublime Text Ctlr+Shift+P or Cmd+Shift+P

gloria
Télécharger la présentation

Sublime Text

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Sublime Text Plug-Ins and Add-ons

  2. What it is? • Open Source, Free Text Editor • Currently in Beta for Sublime Text 3 • Sublime Text 2 is good enough, still supported

  3. Package Control • Allows you to install, remove, modify plug ins from Sublime Text • Ctlr+Shift+P or Cmd+Shift+P • import urllib2,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler()) ); by = urllib2.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation')

  4. Package Control • Type: “Package Control: Install Package”

  5. Package Control • Type the name of plug in • Hit enter

  6. Bracket Highlighter • Hate counting brackets? • Shows a small icon in the margin to ID opening/closing brackets

  7. LiveReload • Instantly reloads the page whenever you save • Need to install extension for browser • Button appears in corner • Activate • Magic

  8. SublimeLinter • Shows errors and non best practice code • Node.js needs to be downloaded for JavaScript

  9. Prefixr • Runs CSS through a database to make it cross browser compatible • Not automatic, have to press a button (or two)

  10. DocBlockr • Streamlines creating comments • Type ‘ /* ’ and press ‘enter’ or ‘tab’ • Creates a new line and the ‘ */ ’

  11. DocBlockr • Before a function: creates a template comment • // followed by shift+enter creates comment decoration

  12. Sidebar Enhancements • Adds functionionality to sidebar • Open in browser • Send to trash • Cut/paste • Etc. • Downside: Manual Installation

  13. Git • Allows you to see the history of the file • Similar functionality to SmartGit • Git must be installed • Path must be defined

  14. Dayl Reese Themes • Gives you more options for color themes • Necessary? Eh. • Just cool to have the option to do

  15. Links • Package Control: • https://sublime.wbond.net/ • Bracket Highlighter: • https://github.com/facelessuser/BracketHighlighter • LiveReload: • https://github.com/dz0ny/LiveReload-sublimetext2 • SublimeLinter: • https://github.com/SublimeLinter/SublimeLinter-for-ST2 • Prefixr: • http://wbond.net/sublime_packages/prefixr • DocBlockr: • https://github.com/spadgos/sublime-jsdocs • Sidebar Enhancements: • https://github.com/titoBouzout/SideBarEnhancements • Git: • https://github.com/kemayo/sublime-text-git/wiki • Daryl Reese Themes: • https://github.com/daylerees/colour-schemes

  16. Questions • 1. What are some of the benefits of Sublime Text over other text editora? • 2. Why should you install the plug-in package control? • 3. Name a plug-in for Sublime Text and explain what it does. • 4. What are some differences between ST2 and ST3 Beta?

More Related