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.