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

Source: Internet
Author: User

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

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. The default gedit plug-in is unavailable, so we need to edit> preference> plug-in to enable 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)

Markdown syntax description (Simplified Chinese Version)

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.