Add examples for running the scripts
This commit is contained in:
parent
e7dd392ff9
commit
2012cb6aae
1 changed files with 8 additions and 1 deletions
|
@ -18,13 +18,20 @@ In `Syntax\ Highlighting.py`, insert your code segments in the `code_snippets` d
|
|||
This can be repeated for different languages and code snippets.
|
||||
|
||||
The colorscheme can be generated by executing `Print Classes.py` to generate the `class_colors`, and `class_weights` dictionaries. The colors are based on the currently enabled Pygments colorscheme.
|
||||
|
||||
```sh
|
||||
python3 Print\ Classes.py
|
||||
```
|
||||
Put the generated dictionaries in `Syntax\ Highlighting.py`.
|
||||
|
||||
There are examples already in the program, it should be self-explanitory.
|
||||
|
||||
Then run the program `Syntax\ Highlighting.py`
|
||||
```sh
|
||||
python3 Syntax\ Highlighting.py
|
||||
```
|
||||
The generated HTML code will contain class definitions at the top. The formatted text will be at the bottom.
|
||||
|
||||
The code will be put in the `highlighted_code` dir. If you have any issues, please report them.
|
||||
|
||||
|
||||
|
||||
|
|
Reference in a new issue