code-block-hl directive, just like code-block but with partial line highlights
Project description
Sphinx Code Highlighter Directive
A Sphinx directive that works just like a code-block plus allows you to highlight partial lines.
Examples
Using MyST markdown:
```{code-block-hl} python
:linenos:
:caption: "The text surrounded by `!!!` gets highlighted."
dwarves = [
"Bashful",
"Dopey",
"Happy",
"Grumpy",
"Sleepy",
"Sneezy",
"Doc",
]
i = 0
while i < len(!!!dwarves!!!):
!!!name!!! = dwarves[i]
print(f"{name}s Room")
i += 1
```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for sphinx-code-highlighter-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9156f6019e309cc48c48b32a4f1f665858f53006242427c6a1bf88cf59535cf |
|
MD5 | 22a12ab73f132f8e1d6aac2324db620d |
|
BLAKE2b-256 | c47d6a1cc30e2964a4220dc69393406f962ea9a938d28ef8f1f0b7c259cad93b |
Close
Hashes for sphinx_code_highlighter-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 373b17571ef0074be47b2b5cffc91701c4cc09f2b6c877691a841ebbaa443d2d |
|
MD5 | 13399b4f5e666a792c6de9509c786c40 |
|
BLAKE2b-256 | 941aa89ab705930aca6e189627d1b9b93a948a70ba56f7d711a28d356ebcfbb6 |