PrismJS / prism

Lightweight, robust, elegant syntax highlighting.
https://prismjs.com
MIT License
12.34k stars 1.29k forks source link

Show only specific lines #3741

Open myousuffazal opened 1 year ago

myousuffazal commented 1 year ago

Similar to what is done in Line Highlight where the given few lines are highlighted, in this case, the given few lines would be shown while the other ones would be hidden. The hidden lines could be made visible with a click of an icon representing 'expand'. This is similar functionality to that of a code editor, or what GitHub has in diffs.