Péguy Editor is a small code editor based on Electron, Péguy.js and highlight.js.
It offers a library of ready-to-use code blocks that can be customized to suit your needs.
This allows you to write code quickly without using online chatbots.
It's also a way of centralizing your entire knowledge base.
You need to install Node.js to run Péguy Editor.
Windows
Download the installation file on Node.js web site : https://nodejs.org/fr/download/prebuilt-installer
Run it as administrator.
Mac OS
Open a terminal.
Install Homebrew if you haven't already.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Then, install Node.js and npm.
brew install node
brew install npmLinux
Open a console and run these 2 commands.
sudo apt install nodejs
sudo apt install npmDownload the project archive via this link : https://github.com/Killfaeh/PeguyEditor/blob/main/PeguyEditor.zip
Then, extract it.
Windows
If you run Péguy Editor for the first time, run install.bat as administrator.
Then, run PeguyEditor.bat as administrator.
Mac OS
If you run Péguy Editor for the first time, run Install.
Run PeguyEditor.
Linux
If you run Péguy Editor for the first time, run Install in a console.
Run PeguyEditor in a console.
You can open a workspace by clicking on the button "Change Workspace".
In the right panel, there is the ready-to-use code blocks library.
You can paste a code block in your code by double clicking on the label of the row or simple clicking on the corresponding copy/paste icon.
If you have run Péguy Editor at least once the directory Peguy/CodeEditor/CodeLists has been created in your Documents directory.
You can create your own library by creating some CSV files in this directory.
Here is how to format each CSV file.
In the first row, put the columns labels : "label", "keywords" and "code".
Then, for each following row, put the label of the row in the first column, the keywords with "," as delimiter in the second column and the code block in the third column.
Then, when you save the CSV file, choose UTF-8 as character set, ":" as field delimiter and " as string delimiter.



