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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fae51c4f3bdc6e9c539ef8b8a1102f83ad0301b08687324ad13c77b1f6651bd1 |
|
MD5 | 67d23bad5de3ad0424c2e6197aeee051 |
|
BLAKE2b-256 | da79ffdbc880c3b53902a224a69077f3c92e7c98b1699e22b5f82f5a5e9f4854 |
Close
Hashes for sphinx_code_highlighter-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22355a74bb8f3befd899f295460417b729db851a8682114fe1712c41f4a26608 |
|
MD5 | a187831f6ab43c4647efb418e352f59c |
|
BLAKE2b-256 | 1e389e49d7d0070596dd839aa34ded8f40c60eb191806d3e2ce678ca82d12a29 |