2

Code syntax highlighting doesn't seem to work. Is this a bug or just a feature that needs to be enabled?

I have tried adding the languages examples from What is Syntax highlighting...

These are either poorly chosen examples or syntax highlighting is not working. Our users will possibly use lang-haskell or lang-hs

lang-js

function greet(person) {
    return "Hello " + person;
}
var user = "Jon Skeet";
alert(greet(user));

typescript

var arr = [0, 1, 2];  // will highlight if [typescript] tag exists

"c" using html format to specify

#include <stdio.h>
int main() {
  printf("Hello World");
}

1 Answer 1

3

I've enabled syntax highlighting here on Cardano both on the main site and on meta. Please let us know if you run into any issues.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .