SPinti-Software / highlightjs-cpcdos

Syntax highlighting for Discord and more..
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link
cpcdos highlightjs

Cpcdos Syntax for highlight.js

Commit Open Issue License

What is Cpcdos?

Preamble

Cpcdos is a co-kernel made primarilly for beginners in the OS development world without having to necessarily know low-level programming. By implementing a language called Cpcdos C+, developers can quickly write programs and tools and essentially make a full distribution out of it.

Resources about the operating system, tests, tutorials, etc. may be found here.

Implementation

Cpcdos sits on top of a DPMI server for the moment, although progress on independent code has been made during the last couple of years. The DPMI server is used mainly for filesystem operations, networking & video display.

Example Code Snippet

See /test/detect/default.txt for an example code snippet.

You can test the syntax highlighting by including both the highlight.js library and this module in a page as follows:

<script type="text/javascript" src="https://github.com/SPinti-Software/highlightjs-cpcdos/raw/master/lib/highlight.min.js"></script>
<script type="text/javascript" src="https://github.com/SPinti-Software/highlightjs-cpcdos/raw/master/lib/cpc-highlight.min.js"></script>
<script type="text/javascript">
  hljs.initHighlightingOnLoad();
  // ...
</script>

Depending on the layout of your website or application, the specified paths in the above code block may be different. Refer to the highlight.js documentation for more details on how to use this library.

Website

For more information, visit the website.

What is highlight.js?

highlight.js is a syntax highlighter written in JavaScript. It works in a browser as well as on a server. It has automatic language detection and doesn’t depend on any framework.

Main Contributors

The following developers have contributed to this project:

Developer Name Description
0v3rl0w Code and initial README.md
alexbelm48 README.md completion