Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Mastering Sublime Text
  • Table Of Contents Toc
  • Feedback & Rating feedback
Mastering Sublime Text

Mastering Sublime Text

By : Dan Peleg
3.5 (12)
close
close
Mastering Sublime Text

Mastering Sublime Text

3.5 (12)
By: Dan Peleg

Overview of this book

Sublime is the leading platform for developing websites, applications, and software. Sublime Text is a sophisticated, cross-platform text and source code editor. It supports a number of different programming languages and is extremely efficient and feature rich. With Sublime Text, programmers can develop their web applications faster and with more efficiency. This book will put you at the frontier of modern software development. It will teach you how to leverage Sublime for anything from mobile games to missile protection. Above all, this book will help you harness the power of other Sublime users and always stay on top. This book will show you how to get started, from basic installation through lightning fast code navigation and up to the development of your own plugins. It takes you from the early stages of navigating through the platform and moves on by teaching you how to fully customize your platform, test, debug, and eventually create and share your own plugins to help and lead this community forward. The book will then teach you how to efficiently edit text, primarily by using the keyboard. You will learn how to interact with the Sublime Text community using the mailing lists and IRC.
Table of Contents (15 chapters)
close
close
Mastering Sublime Text
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1
Index

Understanding your first snippet


We learned that snippets can be very helpful, so how about creating our own? We'll make an awesome HTML snippet, better than the one in the preceding example. First, let's have a look at how snippets work in more detail.

How do snippets work?

Snippets can be saved under any package folder, but we'll start with saving our snippets under Packages/User. Snippets must live in a Sublime package.

File format and syntax

Snippets are simple XML-formatted files with the extension sublime-snippet. The root XML tag will always be <snippet> and will then contain the following:

  • Content: This tag represents the actual snippet.

    • If we want to write $, we'll need to escape it with \$.

    • For indentation, use tabs only. If the translate_tabs_to_spaces option is set to true, tabs will be transformed to spaces automatically when the snippet is inserted.

    • The Content tag must contain the <![CDATA[…]]> section. Snippets won't work if we won't do it.

    • Also, the Content tag cannot...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Mastering Sublime Text
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon