Syntax highlighting

From Computernewb Wiki
Revision as of 19:11, 22 December 2019 by CHOCOLATEMAN (talk | contribs) (Reverted edits by MrTorVandal5 (talk) to last revision by Icanttellyou)
Jump to navigation Jump to search

Syntax highlighting is available on this wiki. Syntax highlighting will allow you to make code much easier to read by separating it with colors.

To highlight syntax, do the following:

<syntaxhighlight lang="(language)">
text here
</syntaxhighlight>

An example of Hello World in C with Syntaxhighlight:

/* Hello World */
#include <stdlib.h>
#include <stdio.h>
int main()
{
    printf("Hello World\n");
    return 0;
}

Available languages

Need a language highlight that isn't available here? Contact Dartz and we can see about adding it!

  • ARM Assembly
  • Access log
  • ActionScript
  • Ada
  • Apache
  • AppleScript
  • AutoHotKey
  • AutoIt
  • Awk
  • Bash
  • Basic
  • Batch
  • Brainfuck
  • C#
  • C(++)
  • CSS
  • Cap'n Proto
  • Clean
  • Clojure
  • Cmake
  • CoffeeScript
  • Coq
  • Crystal
  • D
  • Dart
  • Delphi
  • Diff
  • Django
  • Dockerfile
  • Dust
  • ERB (Embedded Ruby)
  • Erlang
  • Excel
  • Extended Backus-Naur Form
  • F#
  • Fortran
  • Go
  • HTML
  • HTTP
  • Haml
  • Haskell
  • Ini
  • JSON
  • Java
  • JavaScript
  • Lisp
  • LiveScript
  • Lua
  • MIPS Assembly
  • Makefile
  • Markdown
  • MoonScript
  • Nginx
  • Objective-C
  • PHP
  • Perl
  • Pony
  • PowerShell
  • Processing
  • PureBASIC
  • Python
  • QML
  • R
  • Ruby
  • Rust
  • SQL
  • Scheme
  • Shell Session
  • Smalltalk
  • TypeScript
  • VB.Net
  • VBScript
  • VBScript in HTML
  • Vim Script
  • XML
  • x86 Assembly