Each of these is ```c new line and comment then a close fence but all look different. Am I doing it wrong, or is this a bug?
/* example.c -- here is an example of quoting
* a single simple c comment
*/
/*
To use this program, compile it -- if you can -- and then type something like:
chan -n 5000 -d 2 < input.txt
In this case, it will produce 5000 words of output, checking two-word groups. (The explanation above describes two-word generation. If you type "-d 3", the program will find three-word groups, and so on. Greater depths make more sense, but they require more input text and take more time to process.)
http://www.eblong.com/zarf/markov/
*/
/* foo.c make comments: have fun
/* (c) never by no one
/* compile with cc or gcc or whatever
*/
Whose site settings? Iâm a discourse user, not admin. Anything thatâs hidden in adminland is outside of my view. Is there a list of these for regular users to know what names / labels to use?
Itâs okay not to have an auotcomplete thing, I find the Discourse implentation very clunky (but as it could be me, I have not raised the issue), but a non hidden list of syntax-known languages would be nice. I can see from that list, that I would have guessed wrong for makefiles, too. (Iâd think of it as âmakeâ.) And I have to wonder if âbashâ is really bash or the whole sh/(d)ash/ksh/bash family.
https://highlightjs.org/ says â135 languagesâ. The box in Samâs post has 24. If Discourse is not going to have the full set, how will I know what I can use, short of experimentation?
Ah, maybe I was being dense, but I hadnât realized you meant âdev toolsâ in my browser, I thought it was some Discourse interface. Opening the Firefox web console and entering that does show the list quoted above.
Itâs a command I am likely to never remember without a cheat sheet.
/*
To use this program, compile it -- if you can -- and then type something like:
chan -n 5000 -d 2 < input.txt
In this case, it will produce 5000 words of output, checking two-word groups. (The explanation above describes two-word generation. If you type "-d 3", the program will find three-word groups, and so on. Greater depths make more sense, but they require more input text and take more time to process.)
http://www.eblong.com/zarf/markov/
*/
I dunno. That doesnât look like it dectected a C (or to be pedantic, C preprocessor) comment.
Edit:
Is it just highlight.js weirdness? Letâs label that cpp:
/*
To use this program, compile it -- if you can -- and then type something like:
chan -n 5000 -d 2 < input.txt
In this case, it will produce 5000 words of output, checking two-word groups. (The explanation above describes two-word generation. If you type "-d 3", the program will find three-word groups, and so on. Greater depths make more sense, but they require more input text and take more time to process.)
http://www.eblong.com/zarf/markov/
*/
Nope, that looks fine. I think the guessing is failing. Which is why I wanted to label it in the first place.
I see, itâs because you have something that looks like code inside the comment. Anyway, in the vast majority of cases highlight will guess the code correctly without having to look up and type in the actual language shortcode.