Skip to content

web: cleanup CodeExcerpt / CodeExcerpt2 code split

Warren Gifford requested to merge sg/cleanup-code-excerpt into main

Created by: slimsag

CodeExcerpt2 feels like a particularly bad name for something that is only enabled by developers in the case of:

// Dev flag for disabling syntax highlighting on search results pages.
const NO_SEARCH_HIGHLIGHTING = localStorage.getItem('noSearchHighlighting') !== null

This change renames it to CodeExcerptUnhighlighted and adds documentation to both which describes the difference between the two.

Helps #6992 (closed)

Signed-off-by: Stephen Gutekanst [email protected]

Merge request reports

Loading