A repository that prints source code in terminal prettier
First clone repository from github or download sources from release
then run the following command
sudo python3 setup.py install
python setup.py install
catcode [File Name] [--name] [--icon] [--flx[Langauge Name]]
python3 catcode.py [File Name] [--name] [--icon] [--flx[Langauge Name]]
- cpp
- python3
- javascript (beta)
The customization must be done before the installation for now.
Copy the empty_config.py file and rename it to [language name]_config.py
Edit the content of the file
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
}
...