崇高文本

Sublime Text is a popular code editor but, after spending a few months with it, I realised something: it’s also an excellent tool for blogging. I don’t mean it’s just an excellent blogging tool for a code editor, I mean it’s an excellent blogging tool period. These days, I write all of my posts in Sublime Text – including this one – and, as you’ll soon see, there’s nothing else like it.

Sublime Text是一个受欢迎的代码编辑器,但是花了几个月的时间后,我才意识到:它还是博客的出色工具。 我并不是说它只是代码编辑器的一个出色的博客工具,而是一个极好的博客工具时期 。 这些天,我用Sublime Text(包括Sublime Text)写了我所有的帖子,而且,正如您很快就会看到的那样,没有其他比它更好的了。

In this article, I’ll share the most important tips for blogging in Sublime Text and, along the way, the benefits will become clear.

在本文中,我将分享在Sublime Text中撰写博客的最重要技巧,并且在此过程中,好处将变得显而易见。

Let’s begin.

让我们开始。

1.用Markdown书写 (1. Write with Markdown)

Sublime Text is a text editor, not a rich text editor. This means writing with a formatting language like Markdown will get you the most bang for your buck. If you’re not sold on the idea of Markdown, consider these benefits:

Sublime Text是文本编辑器,而不是RTF编辑器。 这意味着使用诸如Markdown之类的格式语言进行书写将使您物有所值。 如果您对Markdown的想法不满意,请考虑以下好处:

  • Your files are portable between platforms. You might use Sublime Text on your computer, for instance, but you can just as easily switch to Editorial on the iPad.

    您的文件可在平台之间移植 。 例如,您可以在计算机上使用Sublime Text,但可以在iPad上轻松切换到社论 。

  • It’s much easier to backup your work. Save every file into Dropbox and instantly have an archive of your posts. Combine this with Arq and Glacier and you’ll have more backups than you could ever possibly need.

    备份您的工作要容易得多 。 将每个文件保存到Dropbox中,立即保存您的帖子存档。 将其与Arq和Glacier结合使用,您将拥有比您可能需要的更多的备份。

  • You’re not locked into any format. Converting from Markdown to HTML is easy, as is converting form practically any other format. There is no safer format for your words.

    您没有被锁定为任何格式 。 从Markdown转换为HTML很容易,几乎可以转换成任何其他格式。 您的单词没有更安全的格式。

Then, on top of all of this, there are the benefits associated specificially with Sublime Text, and those are what we’ll cover now.

然后,最重要的是,还有与Sublime Text特别相关的好处,而这正是我们现在要介绍的内容。

2.安装这些软件包 (2. Install These Packages)

By itself, Sublime Text has a ton of features that’ll come in handy when working with words, but there’s also an ecosystem of third-party packages that take it to a whole other level. Here’s the ones I’ve found the most helpful:

就其本身而言,Sublime Text具有大量的功能,这些功能在处理单词时会派上用场,但是还有一个第三方软件包生态系统将其带到另一个层次。 这是我发现最有帮助的:

  • MarkdownEditing (above) adds the best syntax highlighting to Markdown files that I’ve ever seen – yes, even better than dedicated writing apps like Byword. It also simplifies the interface by removing line numbers, etc.

    MarkdownEditing (上面)为我见过的Markdown文件添加了最佳的语法高亮显示-是的,甚至比像Byword这样的专用编写应用程序还要好。 它还通过删除行号等简化了接口。

  • SmartMarkdown adds a range of other useful features, like the ability to fold headlines (which is great for larger documents) and create Markdown lists more easily (by automatically creating the bullet points when you tap the “Return” key).

    SmartMarkdown增加了一系列其他有用的功能,例如折叠标题(对较大的文档非常有用)和更轻松地创建Markdown列表的功能(通过在单击“ Return”键时自动创建项目符号点)。

  • WordCount adds word count functionality to the Sublime Text status bar. It isn’t an inherently remarkable package but, either way, it works well.

    WordCount将单词计数功能添加到Sublime Text状态栏。 它并不是天生的卓越软件包,但无论哪种方式,它都可以正常工作。

But these are still just the tip of the iceberg. There are thousands of packages available, many of which are specific to writers.

但是这些仍然只是冰山一角。 有成千上万的软件包可用,其中许多是特定于作者的。

To find packages (and to learn how to install them), visit Package Control. You can also click here to find the packages related to writing.

要查找软件包(并了解如何安装它们),请访问软件包控制 。 您也可以单击此处查找与写作相关的软件包。

3.进入无干扰模式 (3. Enter Distraction Free Mode)

Like I said, the MarkdownEditing package simplifies the interface so you’re able to focus on your words, but Sublime Text itself has a mode for blocking out distractions (and these modes complement each other, rather than step on each other’s toes).

就像我说的那样,MarkdownEditing包简化了界面,因此您可以专注于单词,但是Sublime Text本身具有阻止干扰的模式(这些模式相互补充,而不是踩在对方的脚趾上)。

To enable the distraction free mode, select the option from the “View” menu or press Shift + CTRL + CMD + F on your keyboard (if you’re a Mac user).

要启用无干扰模式,请从“查看”菜单中选择选项,或按键盘上的Shift + CTRL + CMD + F (如果您是Mac用户)。

In this mode, the word-wrap length shortens, interface elements disappear (but everything is still accessible with shortcuts), and there’s nothing left to distract you. This alone won’t make you a great writer, but:

在这种模式下,自动换行的长度缩短了,界面元素消失了(但是仍然可以通过快捷方式访问所有内容),并且没有任何东西可以分散您的注意力。 仅此一项并不能使您成为一名出色的作家,但是:

  1. It does help to have nothing but your words in front of you.在您面前只有您的言语确实有帮助。
  2. Although I’m sure it’ll become standard, not all code editors have this feature. (And to be clear, this mode is not the same as full-screen mode.)尽管我确定它将成为标准,但并非所有代码编辑器都具有此功能。 (请注意,此模式与全屏模式不同。)

You also have a lot of customization available, so if the distraction free settings aren’t quite to your liking, almost everything can be changed with a little bit of tweaking (but that’ll require some Googling on your part).

您还可以使用很多自定义功能,因此,如果不喜欢分散干扰的设置,几乎可以通过一点点调整来更改所有内容(但这需要您在Google上进行一些谷歌搜索)。

4.与项目一起组织 (4. Organise with Projects)

If you open a folder (or multiple folders) inside of Sublime Text, you can save that collection of folders as a project. Here’s an example:

如果您在Sublime Text内部打开一个文件夹(或多个文件夹),则可以将该文件夹集合另存为项目 。 这是一个例子:

Currently, I’m writing this post inside a “Posts” project that contains the following three folders:

当前,我正在“ Posts”项目中编写此帖子,该项目包含以下三个文件夹:

  • davidturnbull.comdavidturnbull.com
  • meteortips.commeteortips.com
  • sitepoint.comsitepoint.com

These are the sites I’m actively writing for and, therefore, when I want to write something, I can open this project and have instant access to all of my blog posts (even if these folders aren’t in the same place on my computer).

这些是我正在积极写的网站,因此,当我想写点东西时,我可以打开该项目并立即访问我所有的博客文章(即使这些文件夹不在我的同一个位置)电脑)。

Why is this different from navigating the file system?

为什么这与浏览文件系统不同?

Well, by pressing the CMD + P combination on my keyboard, I can switch between all of the files in my project without ever touching the mouse. This might not be a game-changing feature but:

好吧,通过按键盘上的CMD + P组合键,我可以在项目中的所有文件之间切换,而无需触摸鼠标。 这可能不会改变游戏规则,但是:

  1. It becomes one of those unconcious habits that allows you to switch between writing blog posts without interrupting your flow.它成为那些无意识的习惯之一,使您可以在撰写博客文章之间进行切换而不会中断您的流程。
  2. There’s a huge amount of shortcuts and features like this that are designed for programmers but translate well to writing tasks.像这样的大量快捷方式和功能是为程序员设计的,但可以很好地转化为编写任务。

Precisely how you use projects will depend on your preferences – maybe it makes sense to have one project per blog, for instance – but in either case, it’s a handy feature for organising a large output of writing. Perhaps the best point of comparison would be the projects feature in Scrivener.

准确地使用项目的方式取决于您的偏好-例如,每个博客拥有一个项目也许很有意义-但在任何一种情况下,这都是组织大量写作成果的便捷功能。 最好的比较点可能是Scrivener中的项目功能。

5.分割窗口 (5. Split Your Window)

After I finish a draft for a blog post, I have a strict process for editing that’s served me well for the last few years:

在完成博客文章的草稿后,我有一个严格的编辑过程,在最近几年中一直为我服务:

  1. I leave the post alone for at least 24 hours. This distance allows me to return to the post with a fresh perspective.我至少独自呆了24个小时。 这样的距离让我以崭新的视角回到岗位。
  2. I open the first draft on one half of the screen and a blank document on the other half of the screen.我在屏幕的一半打开第一稿,在屏幕的另一半打开空白文档。
  3. I rewrite the entire thing from scratch, only using the original draft as a reference.我仅使用原始草稿作为参考,从头开始重写了整个过程。

Editing will sometimes take more steps, but never fewer, and I think this rigidness has made it easier to draw people into my blog, and also to snag writing gigs on larger sites like SitePoint.

编辑有时会采取更多的步骤,但绝不会减少,我认为这种僵化使得将人们吸引到我的博客中以及在诸如SitePoint之类的大型网站上轻松录制演出变得更加容易。

Within Sublime Text, editing like this is seamless by using the “Layouts” feature to split the window into multiple quadrants. I’ll usually split the window into two vertical panes, but horizontal panes are available, as are options for a higher number of panes (useful if you have a large monitor and want to have another pane that contains research, for instance).

在Sublime Text中,通过使用“布局”功能将窗口分为多个象限,可以进行无缝编辑。 我通常将窗口分为两个垂直窗格,但水平窗格可用,更多窗格的选项也可以使用(例如,如果您有一个大型监视器,并且想要另一个包含研究的窗格,则很有用)。

When combined with the distraction free mode, splitting the window into multiple panes makes editing almost as simple as it could possibly be.

当与免干扰模式结合使用时,将窗口拆分为多个窗格将使编辑尽可能简单。

6.导出您的写作 (6. Export Your Writing)

It’s all well and good to write blog posts inside Sublime Text. But how do you actually get these posts onto your blog? Here’s a few options to considder:

在Sublime Text内写博客文章很好,也很好。 但是,您实际上如何将这些帖子发布到博客上? 这里有一些可供考虑的选项:

  • If you’re a WordPress user, install the Jetpack Markdown plugin. This will add support for Markdown when writing posts.

    如果您是WordPress用户,请安装Jetpack Markdown插件。 这将在撰写文章时增加对Markdown的支持。

  • Using an application like Marked will make it easy to export Markdown files to HTML (but there’s also packages available for this).

    使用Marked之类的应用程序可以轻松地将Markdown文件导出为HTML(但也可以使用此软件包 )。

  • Switch to a static blogging platform like Jekyll. This is a bigger transition but the writing experience can’t be beat.

    切换到Jekyll之类的静态博客平台。 这是一个更大的过渡,但写作经验无与伦比。

Then, for future reference, look into Pandoc. It’s overkill for blog posts but this command line tool allows you to convert Markdown files into almost any format, which will be useful if you were to ever collect together your blog posts and convert them into a book.

然后,查看Pandoc ,以供将来参考。 对于博客帖子来说,这太过分了,但是使用此命令行工具,您可以将Markdown文件转换成几乎任何格式,如果您将博客帖子收集在一起并将它们转换成书,这将很有用。

结论 (Conclusion)

There’s a lot to love about Sublime Text and what we’ve covered here is just the beginning. If you’re already using a text editor on a regular basis though and like the idea of a more compact workflow, then it’s worth diving into the program and learning more about its packages, customization, and the endless amount of shortcuts for making your writing that little bit more seamless.

Sublime Text有很多值得爱的地方,我们在这里介绍的只是开始。 如果您已经定期使用文本编辑器,并且喜欢更紧凑的工作流程,那么就值得深入研究该程序,并详细了解其程序包,自定义以及进行写作的无穷快捷方式更无缝。

翻译自: https://www.sitepoint.com/sublime-text-perfect-blogging-6-ways/

崇高文本

崇高文本_将崇高文本转化为完美博客工具的6种方法相关推荐

  1. Unity UGUI 之 实现 Text 文本文字过长,省略号显示(TextMeshPro 和常规 Text 二种方法)

    Unity UGUI 之 实现 Text 文本文字过长,省略号显示(TextMeshPro 和常规 Text 二种方法) 目录 Unity UGUI 之 实现 Text 文本文字过长,省略号显示(Te ...

  2. cxgrid中纵横单元格合并_逆向查询合并单元格中的数据,这两种方法你值得拥有...

    ​有同事询问了一个问题,说下面的这种表格,我有部门和人员的清单列表,如果我想根据人员清单去查询其所在的部门要怎么实现呢? 因为部门列的数据内容是经过合并的,如果我们直接使用Vlookup进行查找,查找 ...

  3. attrib批量显示文件夹_电脑中病毒,文件夹全部变成快捷方式?3种方法轻松解决!...

    原标题:电脑中病毒,文件夹全部变成快捷方式?3种方法轻松解决! 最近有位朋友去打印店的时候,u盘一不小心就带回了1KB快捷方式病毒,导致电脑u盘里的文件以及文件夹全部变成了快捷方式,不知道如何解决. ...

  4. python中none算变量吗_在python中对变量判断是否为None的三种方法总结

    三种主要的写法有: 第一种:if X is None; 第二种:if not X: 当X为None,  False, 空字符串"", 0, 空列表[], 空字典{}, 空元组()这 ...

  5. vba 数值转文本_数值转文本,TEXT函数神操作

    今天,小编将给大家分享TEXT函数: 函数简介:将数值转换成文本,并根据自己需要指定显示格式 函数参数:TEXT(value,format_text) 参数详解: Value:要改变格式的单元格 fo ...

  6. wxpython富文本_去除富文本编辑器中的标签

    public static String deRegularExpression(String content) { content = deRegularScript(content); // 过滤 ...

  7. php文本框自动补全,PHP自动补全表单的两种方法

    效果图: 第一种:从数据库中检索之后补全 第二种:邮箱等纯前端的补全 先说第二种,使用开源的插件,所以相对简单. github上面的项目 completer. https://github.com/f ...

  8. 时间戳转化成年月日时分秒格式的几种方法

    几种时间戳转换年月日格式的代码 1. 时分秒格式:timefrom(时间戳, 是否中文) 显示: 11小时14分钟04秒 11:14:04 function timefrom(value, ind) ...

  9. python提交表单无效_使用Django Form解决表单数据无法动态刷新的两种方法

    一.无法动态更新数据的实例 1. 如下,数据库中创建了班级表和教师表,两张表的对应关系为"多对多" from django.db import models class Class ...

最新文章

  1. 【组队学习】【26期】Linux教程
  2. [云炬创业基础笔记]第一章创业环境测试1
  3. wxWidgets:从文件中读取文本
  4. 队列与环形队列使用数组模拟
  5. java的spinner_java中的spinner | 学步园
  6. 你不知道的JavaScript(二)
  7. 执行 link.exe 时出错_在20多岁时应该做什么,以避免在30多岁和40多岁时后悔?...
  8. 小伙工资单被同事看到后遭开除!网友炸锅了 最新后续来了...
  9. 廖雪峰Java2面向对象编程-6Java核心类-5枚举类
  10. android 分包粘包_Android Socket 发送与接收数据问题处理: 发送后的数据接收到总是粘包...
  11. HeadFirst设计模式笔记——命令模式
  12. 清理FLASH_RECOVERY_AREA
  13. 【跨境电商】WhatsApp营销保姆级教程!
  14. BZOJ2818 Gcd
  15. sql注入——布尔注入
  16. excel中插入文档
  17. HTML生日快乐代码 (粉色主题)(HTML5+CSS3+JS)520表白代码/七夕情人节网页/告白/求婚/生日快乐
  18. texstudio调用外部pdf查看器的配置方法
  19. 压力密度杯行业调研报告 - 市场现状分析与发展前景预测(2021-2027年)
  20. 软件项目开发计划【列文】2022.5.11

热门文章

  1. Postgres -- 如何在 Windows 上安装Postgres数据库 初始化启动数据库
  2. 简单java代码-判断闰年、平年
  3. 华为OD机试 - 简易压缩算法(Python) | 机试题算法思路 【2023】
  4. 关于JQuery中removeAttr方法的坑
  5. Andrej Karpathy:神经网络是“软件2.0”,而非机器学习的一种工具
  6. 计算机音乐想见你,抖音好想见你啊是什么歌 好想见你啊歌曲介绍
  7. scrapy模拟浏览器翻页爬取智联
  8. Python面试题 - 基础题(一)
  9. JavaScript中apply的用法
  10. 京瓷Kyocera CS 3050ci 一体机驱动