Skip to content

Porygon is a lightweight, terminal-based text editor written in C. It features syntax highlighting for C files, basic text editing, file I/O, and raw mode input for efficient terminal use. Inspired by the Kilo Text Editor, Porygon offers a simple, fast, and minimal editing experience.

Notifications You must be signed in to change notification settings

SimonOneNineEight/porygon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Porygon Porygon Text Editor

Porygon is a lightweight terminal-based text editor written in C. It features syntax highlighting, file saving, basic text manipulation, and cursor navigation. Porygon runs in the terminal and operates in raw mode, allowing efficient editing with minimal dependencies.

Overview

Porygon is inspired by classic terminal text editors like Vim and Nano. It is built from the ground up in C and implements basic text editing functionality, including:

  • File opening and saving
  • Syntax highlighting for C language
  • Navigation with arrow keys and home/end/page keys
  • Basic text operations like inserting, deleting, and searching

Features

  • Raw Mode Input: Captures keyboard input directly without the terminal’s default behavior (no echoing or line buffering).
  • Syntax Highlighting: Supports highlighting for C files, with keywords, comments, strings, and numbers being color-coded.
  • Text Editing: Insert, delete, and append text with support for tab stops and newlines.
  • File I/O: Open and save text files.
  • Search Function: Supports searching for text within the document.
  • Status Bar: Displays the filename, total lines, and whether the file has been modified.
  • Basic Error Handling: Error messages are printed if I/O operations fail.

Acknowledgment

This project is heavily inspired by the Kilo Text Editor created by Salvatore Sanfilippo. Many of the core features and architecture are based on Kilo, and Porygon expands upon it with additional functionality and improvements.

About

Porygon is a lightweight, terminal-based text editor written in C. It features syntax highlighting for C files, basic text editing, file I/O, and raw mode input for efficient terminal use. Inspired by the Kilo Text Editor, Porygon offers a simple, fast, and minimal editing experience.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published