This PR implements syntax highlighting in our UwU++ compiler. This implementation allows us to put more themes in our compiler, our initial theme is tokyo
Implementation Details
Theme folder structure
theme
├── __init__.py
├── config.py
└── sample.py
__init__.py - This is the entry point of the theme folder. We can access all themes here in a dictionary format.
config.py - This file can be modified in the future, but so far, it covers all tokens in lexer + built-in methods.
sample.py - This file contains a sample of how we can create a theme for our compiler.
Description
This PR implements syntax highlighting in our UwU++ compiler. This implementation allows us to put more themes in our compiler, our initial theme is
tokyo
Implementation Details
Theme folder structure
__init__.py
- This is the entry point of the theme folder. We can access all themes here in a dictionary format.config.py
- This file can be modified in the future, but so far, it covers all tokens in lexer + built-in methods.sample.py
- This file contains a sample of how we can create a theme for our compiler.Usage
Editor theme can be set on![image](https://github.com/Gidsss/UwUIDE/assets/70326902/7ab57076-d519-419b-9bbe-2ec0c7258137)
code_view.py
filePreview
https://github.com/Gidsss/UwUIDE/assets/70326902/d3c5e2df-e09b-46d0-9690-51355f32572b