Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
```