Skip to main content

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
```

screenshot

Metadata

Release files for sphinx-code-highlighter 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sphinx-code-highlighter 0.0.4
File Size Uploaded Provenance Actions
sphinx-code-highlighter-0.0.4.tar.gz 4.5 kB Without provenance Details for sphinx-code-highlighter-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sphinx-code-highlighter 0.0.4
File Interpreter ABI Platform Actions
sphinx_code_highlighter-0.0.4-py3-none-any.whl Python 3 none any Details for sphinx_code_highlighter-0.0.4-py3-none-any.whl

Total release size: 9.3 kB

Release files / sphinx-code-highlighter-0.0.4.tar.gz

Download URL sphinx-code-highlighter-0.0.4.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
962ff19b669db45b0aef49e40caa01bf1f6f6850bf6029b3074db6b9c5d80aa7
BLAKE2b-256 checksum
How to use checksums
2700eb550f4b7a29efe5d308fbe5b4f3b2f5c2c415c6c8954af95792a5d09a5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.1 CPython/3.9.1 Darwin/22.3.0

Release files / sphinx_code_highlighter-0.0.4-py3-none-any.whl

Download URL sphinx_code_highlighter-0.0.4-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
00fb2976eb4097fe0547d667be326fdce82630ee2c042babdbe3cb38a81775f8
BLAKE2b-256 checksum
How to use checksums
a00a61e52a9c12792986ae3812178cfbab92fcb34d4137d4a7604b1cbd077149
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.1 CPython/3.9.1 Darwin/22.3.0

Security for sphinx-code-highlighter 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page