Skip to content

Syntax highlight class for e.g CMake (and others) #2199

@xor-gate

Description

@xor-gate

I see gogs uses highlight.js and CMake is supported (build framework) used in C/C++ style projects.

When gogs sees one of the following files it could highlight with CMake markup:

  • CMakeLists.txt (with correct casing)
  • *.cmake

I search through the gogs sourcecode but as far as I can tell you let highlight.js automatic select the syntax highlighting and dont set the div class attribute as specified here: https://highlightjs.org/usage/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions