Add the Markdown preview plug-in to the gedit editor of Ubuntu

Source: Internet
Author: User
The gedit editor that comes with MarkdownPreviewUbuntu is also powerful and supports plug-in installation. For me who like to use Markdown, this is of course good. gedit itself supports Markdown syntax highlighting, And the preview function is perfect, the MarkdownPreview plug-in can solve this problem, so that we can preview it in the current window. system Version: UbuntuKylin15.04 install Markdown Preview

The built-in gedit editor of Ubuntu also has powerful functions and supports plug-in installation. For me who like to use Markdown, this is of course good. gedit itself supports Markdown syntax highlighting, And the preview function is perfect, the Markdown Preview plug-in can solve this problem, so that we can Preview it in the current window.

System: Ubuntu Kylin 15.04

Gedit version: 3.10.4

Markdown preview version: 2

1. Download the corresponding file based on your gedit version. For Versions later than gedit3.8, you can download the file through the following link:

  • Download the archive of gedit-markdown v2.

2. decompress the file

3. Open the terminal in the decompressed folder and enter the following installation command:

./Gedit-markdown.sh install

The uninstall command is:

./Gedit-markdown.sh uninstall

4. Complete the installation ..

5. gedit cannot use plug-ins by default, so we needEdit> preferences> plug-inEnable the Markdown Preview plug-in and restart gedit.

6. When editing the Markdown file, use the shortcut keyCtrl + Alt + MTo preview. If no preview is available, firstCtrl + Alt + VSwitch to the display panel of Markdown Preview

7. The display panel of Markdown Preview can be set to Sidebar or bottom panel. The specific settings are as follows:
Open a file

$ HOME/user/. config/gedit/gedit-markdown.ini

Modify rows

Panel = bottom

UserYour username

Panel = bottom; Bottom panel display

Panel = side; Sidebar display

Of course, we can also modify the familiar shortcut keys in this configuration file.

Problem:

Q: The Markdown Preview plug-in cannot be enabled, and the plug-in cannot be loaded.
A: Check the package.python3-markdownWhether to install. If your system version is Ubuntu 11.10 or later, you need to installgir1.2-webkit-3.0After the installation is complete, restart gedit. In some cases, restarting gedit is fruitless. You need to restart the system to take effect.

For more functions and settings, see the READE. md file in the compressed package.

Markdown: Basics (Quick Start) http://www.linuxidc.com/Linux/2014-12/110960.htm

Markdown syntax (Simplified Chinese) http://www.linuxidc.com/Linux/2014-12/110960.htm

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-09/122690.htm

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.