Skip to content

Latest commit

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

catcode

revival0728 - catcodetag - v1.0.0License - MITPython - >=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_configimportDEFAULTfrom .cpp_configimportcppfrom .python3_configimportpython3from .javascript_configimportjavascriptfrom .[langaugename]_configimport [languagename] # modifiedclassExport:
deflanguage_config(self) ->dict:
return {
'cpp': cpp,
'python3': python3,
'javascript': javascript,
'DEFAULT': DEFAULT,
'[language name]': [languagename], # modified
}
...

About

A repository that prints source code in terminal prettier

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages