Original: pingyuan162Date: 2015-05-13Retext introduces the MarkDown editor in Linux. Official Introduction: ReTextisasimpleeditorthatreadsyourtextwithMarkDownorHTMLmarkupandsavesitasplaintext, HTML
Original: pingyuan162 Date: 2015-05-13
Retext introduction
MarkDown editor in Linux.
Official introduction:
ReTextIs a simple editor that reads your text with MarkDown or HTML markup and saves it as plain text, HTML or PDF.
It is written in Python using Qt libraries.
Download the installation package
Http://sourceforge.net/projects/retext/
This document downloads retext-5.0.2.tar.gz.
View README document
tar -zxvf ReText-5.0.2.tar.gzcd ReText-5.0.2vim README
According to the description of the README file, the following packages are required to run ReText:
- Python-version 3.2 or higher
- Pyqt5
- Python-markups
- Python-markdown-for Markdown language support
- Python-docutils-for reStructuredText language support
- Python-enchant-for spell checking support
Install the preceding package in sequence.
Install Python 3
The python3 package comes from the Nux Desktop repository. Configure the repository and install it through yum.
sudo rpm -ivh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpmsudo yum install python3 python3-devel python3-pip
Install PyQt5
PyQt5 requires a Qt5 package and a sip package. The Qt5 package can be installed from the epel repository yum.
Epel repository configuration
sudo rpm -ivh http://mirrors.ustc.edu.cn/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
Qt5 package installation
sudo yum install qt5\*
Sip installation
Http://sourceforge.net/projects/pyqt/files/sip/
Siplib. c: 20: 20: Fatal error: Python. h: no file or directory
Cause: The Python 3 development kit is missing.
Solution:sudo yum install python3-devel
Install PyQt5
Http://sourceforge.net/projects/pyqt/files/PyQt5/
2. Installation
tar -zxvf PyQt-gpl-5.4.1.tar.gzcd PyQt-gpl-5.4.1python3 configure.py -q /usr/bin/qmake-qt5 -d /usr/lib64/python3.3/site-packages/ --sip /usr/bin/sipmakesudo make install
3. check whether the installation is successful.
python3>>> import PyQt5>>> help(PyQt5)
Install other dependent packages
Install by using python3-pip commands:
sudo python3-pip install markups sudo python3-pip install markdown sudo python3-pip install docutilssudo python3-pip install pyenchant
Install Retext
cd ReText-5.0.2sudo python3 setup.py install
After installation, enter retext in the terminal to run the program.