highlightjs / highlightjs/highlightjs-shexc

Tracking context inside a grammar

Open
#4 11 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4
Forks
1
PR merge metrics
No merged PRs in 30d

Description

```
* Limitations: There is no way (afaik) in highlight.js to assign classes based
* on position. As a result, a TripleConstraint with a predicate and a datatype
* will have the same class applied to both.
```

Could you provide a quick example of what you're talking about here? While it might be true it's not (currently) easy to do you should be able to define a sub-mode that's derives from the parent mode but is different... so something nested inside a block could be highlighted differently than the same thing would if it were outside the block.

But perhaps that's not what your'e getting at here at all.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.