Skip to content

A repository that prints source code in terminal prettier

License

Notifications You must be signed in to change notification settings

revival0728/catcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

catcode

revival0728 - catcode tag - v1.0.0 License - MIT Python - >=3.9


Overview

A repository that prints source code in terminal prettier

preview1

Installation

First clone repository from github or download sources from release

then run the following command

Linux

sudo python3 setup.py install

Windows

python setup.py install

How to Use

With Installation

catcode [File Name] [--name] [--icon] [--flx[Langauge Name]]

Without Installation

python3 catcode.py [File Name] [--name] [--icon] [--flx[Langauge Name]]

Support Language

  • cpp
  • python3
  • javascript (beta)

Customize Language and Color

The customization must be done before the installation for now.

Step 1

Copy the empty_config.py file and rename it to [language name]_config.py

Step 2

Edit the content of the file

Step 3

Add the following code to the config.py

from .default_config import DEFAULT
from .cpp_config import cpp
from .python3_config import python3
from .javascript_config import javascript
from .[langauge name]_config import [language name]     # modified

class Export:
    def language_config(self) -> dict:
        return {
            'cpp': cpp,
            'python3': python3,
            'javascript': javascript,
            'DEFAULT': DEFAULT,
            '[language name]': [language name],     # modified
        }

    ...

About

A repository that prints source code in terminal prettier

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages