Installing the MarkdownEditing plug-in is essential for writing Markdown. After installation, when writing Markdown (the lower-right corner shows Markdown syntax), you can press ctrlb to generate HTML directly and display it in the browser. (However, after the installation is complete, press ctrlB to generate html files and display them in the browser. Then, let's first install the file and continue to study it later.
Installing the MarkdownEditing plug-in is essential for writing Markdown. After installation, when writing Markdown (the lower-right corner shows Markdown syntax), you can press ctrlb to generate HTML directly and display it in the browser. (However, after the installation is complete, press ctrl B to generate the html file and display it in the browser. Then, let's first install it. We will continue to study it later.
Installing the MarkdownEditing plug-in is essential for writing Markdown. After the plug-in is installed, when writing Markdown (the syntax is Markdown in the lower right corner), you can press ctrl + B to generate HTML directly, and displayed in the browser. (However, after the installation is complete, press ctrl + B to generate the html file and display it in the browser. Then, let's first install the file. We will continue to study it later)
You can also use retext to write markdown. The following is the method for installing retext, but it is written in python and has to install the python compiler. This is troublesome and I think it is better to use sublime text. So proceed with the study.
2. How to install ReText
2.1 Download ReText2 from http://sourceforge.net/projects/retext/
2.2 After decompression, go to its directory and execute sudo python setup. py install.
2.3 After the installation is complete, a new directory named build will be generated in the directory and enter the directory starting with scripts. You will find retext. py and run it. For example
Python retext. py 2>/dev/null 1> & 2 &
Installation:
PassPreferences -> Browse Packages...
Open the Packages directory, right-click and choose open in terminal. After the terminal is opened
Git clone https://github.com/ttscoff/MarkdownEditing.git then restart ST2 to complete the installation. The plug-in provides two different color files by default.color_scheme
You can switch the syntax highlighting format of Markdown.{ "extensions": [ "md", "mdown", "mmd", "txt" ], "trim_trailing_white_space_on_save": false, // "font_face": "Menlo", // "font_size": 15, "font_options": [ "subpixel_antialias", "no_round", "directwrite"], "color_scheme": "Packages/MarkdownEditing/MarkdownEditor.tmTheme", // "color_scheme": "Packages/MarkdownEditing/MarkdownEditor-Focus.tmTheme", "translate_tabs_to_spaces": true, "word_wrap": true, "wrap_width": 70, "draw_centered": true, "auto_match_enabled": true, "line_padding_top": 5, "caret_style": "wide", "highlight_line": true, // add trailing #'s to headlines "match_header_hashes": false}
Functions of MarkdownEditingThe functions provided by MarkdownEditing are listed below.
Syntax enhancement class
- Asterisks *, underscores _, and backquotes are automatically paired
- If the content of the input auto-pairing symbol is null, the entire pair is deleted when the first symbol is deleted.
- If a space is directly entered after the automatic pairing symbol is entered, the automatic matching symbol is automatically deleted.
- Wavy line
~
The enclosed content is converted to
- After a list is created, press enter to automatically add a list item. If the list item is blank, press enter again to delete the list item.
Shortcut Key category (according to the self-modified
Default (Windows).sublime-keymap
List)
MarkdownEditing shortcut keys in Windows need to be based onDefault (OSX).sublime-keymap
And add itDefault (Windows).sublime-keymap
.
Ctrl+Win+V
The selected content is automatically converted to an in-row hyperlink to link to the content in the clipboard.
Ctrl+Win+R
The selected content is automatically converted to a reference hyperlink to link to the content in the clipboard.
Ctrl+Alt+R
In the pop-up dialog box, insert a reference hyperlink. In the prompt box, enter the link content and define the reference ID [^ 3].
Ctrl+Win+K
Insert a standard inline hyperlink
Win+Shift+K
Insert a standard inline image (this shortcut key may conflict with the input method)
Ctrl+1
ToCtrl+6
Insert level 1 to Level 6 Title
Win+Alt+i
The selected content is convertedItalics
Win+Alt+b
The selected content is convertedBold[^ 1]
Ctrl+Shift+6
Automatically insert a footer and jump to the definition of the footer.
Alt+Shift+F
Search for undefined footer and automatically add its definition Link
Alt+Shift+G
Search for undefined reference Hyperlink and automatically add its definition Link
Ctrl+Alt+S
Sorting by footer
Ctrl+Shift+.
Indent current content
Ctrl+Shift+,
Current content in advance