Skip to content

About

Péguy Editor is a small code editor offering a customizable library of ready-to-use code blocks to write code quickly.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

124 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Péguy Editor

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.

Table of Contents

  1. Installation
  2. How to use
  3. Customize the code blocks library

Installation

Install Node.js

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 npm

Linux

Open a console and run these 2 commands.

sudo apt install nodejs
sudo apt install npm

Download and extract the archive

Download the project archive via this link : https://github.com/Killfaeh/PeguyEditor/blob/main/PeguyEditor.zip
Then, extract it.


Archive content

Run the application

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.

How to use

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.

Customize the code blocks library

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.

About

Péguy Editor is a small code editor offering a customizable library of ready-to-use code blocks to write code quickly.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages