If hexo-myadmin is the beauty of simplicity, HexoEditor is a surplus beauty, very full, I like simplicity to modify, I like to write article code, I like preview, preview is a habit, both are in use, it is recommended
And HexoEditor is so easy to use, it greatly facilitates the efficiency of blogging. For example, one-click upload of blog pictures, let our province open the Tencent cloud client to manually upload and create folders. Now I want to record the following frequently used operations in daily use.
1 Introduction
HexoEditor is an open source Markdown editor on Github.
To quote the original author:
This is a Markdown editor optimized for Hexo.
Using Electron as a framework
Modified from Moeditor, I just want him to better write content for the blog under Hexo.
At the same time, it also includes a lot of functions, which I find most useful: the preview content is highly similar to the content generated by Hexo
2. Installation process
(1) Install git, nodejs, npm
(2) Next, set the npm
cache path
Note : The path here is the nodejs
corresponding path under the subdirectory you installed
npm config set prefix "D:/developer_tools/nodejs/npm_global"
npm config set cache "D:/developer_tools/nodejs/npm_cache"
(3) Set download source (mirror) to speed up download
npm config set registry "https://registry.npm.taobao.org/"
npm config set electron_mirror "https://npm.taobao.org/mirrors/electron/"
(4) Download HexoEditor
git clone https://github.com/zhuzhuyule/HexoEditor.git
(5) Load and generate electron
electron is developed by Github, is an open source library that uses Html, css, JavaScript to build desktop applications, which can be packaged as applications under Mac, Windows, and Linux systems .
electron is a runtime environment, including Node and Chromium, can be understood as running web applications in the node environment
First log in http://electronjs.org/releases/stable to check the version number
npm install -g [email protected]
Input
cd HexoEditor
npm install
npm start
Ok, the interface is out
3. Set shortcuts
In the HexoEditor sub-directory, create a new file (txt is enough), edit (right click-> open method-> notepad), enter (actually start)
asl start
Then change the file namestart.sh
Double-click start.sh
to see how it works ~ If it
goes well, it gitbash
will pop up, and then HexoEditor will pop up ~
The next step is to get familiar with and configure HexoEditor and write articles, fighting