Skip to content
/ cyntax Public

Syntax highlighter for C code in displayed in HTML

License

Notifications You must be signed in to change notification settings

c6dy/cyntax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cyntax

A syntax highlighter for C code displayed in HTML.

Themes

Currently, the only supported theme is the Dark+ theme from Visual Studio Code.

Example Usage

The C code should be placed inside of a comment. This is to prevent any of the < characters from being rendered as HTML.

<html>
    <head>
        <link rel="stylesheet" href="cyntax.css">
    </head>
    <body>
        <pre>
            <code>
<!--
#include <stdio.h>

int main()
{
	printf("Hello, world!\n);
	return 0;
}
-->
            </code>
        </pre>
        <script src="cyntax.js"></script>
    </body>
</html>

Releases

No releases published

Packages

No packages published