Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nikitaberezhnyj/code_printer
Terminal tool for syntax highlighting code in various languages.
https://github.com/nikitaberezhnyj/code_printer
code-display rust syntax-highlighting terminal-tool
Last synced: about 1 month ago
JSON representation
Terminal tool for syntax highlighting code in various languages.
- Host: GitHub
- URL: https://github.com/nikitaberezhnyj/code_printer
- Owner: NikitaBerezhnyj
- Created: 2024-03-22T13:23:40.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-03-22T13:28:06.000Z (11 months ago)
- Last Synced: 2024-11-14T13:23:56.124Z (3 months ago)
- Topics: code-display, rust, syntax-highlighting, terminal-tool
- Language: Rust
- Homepage:
- Size: 2.16 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Code Printer
#### Repository translates: [українська :ukraine:](#code-printer-ukraine), [english :uk:](#code-printer-uk)
## Code Printer :ukraine:
**_Code Printer_** - це термінальна утиліта, що динамічно підсвічує синтаксис коду різних мов програмування під час друку файлу у термінал. Програма забарвлює ключові слова, рядки, коментарі, дужки та оператори у відповідні кольори, надаючи коду більшої наочності та читабельності.
### Підтримувані мови програмування
- Rust
- Python
- C++
- Niklang
- Udav
- Based### Використання
Для використання Code Printer виконайте наступні кроки:
**_1. Клонуйте репозиторій:_**
```bash
git clone https://github.com/NikitaBerezhnyj/Code_Printer.git
```**_2. Перейдіть до теки репозиторію:_**
```bash
cd Code_Printer
```**_3. Скомпілюйте програму за допомогою компілятора Rust:_**
```bash
cargo build
```**_4. Перейдіть у теку з відкомпільованим фалом_**
```bash
cd target/debug
```**_5. Запустіть програму, передавши шлях до файлу коду та інтервал сну (в секундах, опційно):_**
```bash
./code-printer path/to/your/file.rs 0.1
```---
## Code Printer :uk:
**_Code Printer_** is a terminal utility that dynamically highlights the code syntax of various programming languages while printing a file to the terminal. The program colors keywords, strings, comments, brackets and statements in the appropriate colors, making the code more visible and readable.
### Supported programming languages
- Rust
- Python
- C++
- Niklang
- Udav
- Based on.### Usage
To use Code Printer, follow these steps:
**_1. Clone the repository:_**
```bash
git clone https://github.com/NikitaBerezhnyj/Code_Printer.git
```**_2.Change to the repository folder:_**
```bash
cd Code_Printer
```**_3. Compile the program using the Rust compiler:_**
```bash
cargo build
```**_4. Change to the folder with the compiled file_**
```bash
cd target/debug
```**_5. Run the program, passing the path to the code file and the sleep interval (in seconds, optional):_**
```bash
./code-printer path/to/your/file.rs 0.1
```