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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0473eae6dbd5754a29c27c8ad5627a9eb12c6dfe24c45581285bc86dc71ae17 |
|
MD5 | 2417efe7538e1387a38787641eaa824e |
|
BLAKE2b-256 | afa372756c09e8f4a1e428da487cff6e71880d5fce89d55641998b1c3e024ed8 |
Close
Hashes for sphinx_code_highlighter-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7679c13d50d49a6d8d9a5c5b11c713c575408ca79b07c33494820ad7a553f2a7 |
|
MD5 | ce447ae4b1caf890d33dea394c7c4f4a |
|
BLAKE2b-256 | fea915e7f6af2b8894fe00131e00becf3f463108824a25161037cfbef75745cd |