10

Is there code highlighting for Assembly?

I read some posts but none of them seems to provide a solution:

Missing syntax-highlighting for x86 assembly

6
  • @rene, I've tried several languages, but to no avail, using ; makes a comment in asm and AFAICT there is no other languange that does the same. Thanks.
    – anastaciu
    Commented Sep 21, 2020 at 11:16
  • 5
    I checked the current highlight.js in use by SE and that doesn't contain a registerLanguage call for "asm' or its variants. The best you can do is wait for Highlight.js to come to Stack Overflow and then have assembler added to the language set. highlightjs.org/static/demo see also: meta.stackexchange.com/questions/353983/…
    – rene
    Commented Sep 21, 2020 at 11:31
  • @rene, yes, for now adding // to the code will have to do.
    – anastaciu
    Commented Sep 21, 2020 at 11:39
  • 1
    Related answer on the thread about syntax highlighting.
    – Erik A
    Commented Sep 21, 2020 at 14:25
  • 1
    Hope you don't mind that I've decided to close this as a duplicate of a newer question. I did so because that newer question (A) has more votes than this one, and (B) offers a bit more fleshed-out justification for why the action should be taken. If you're really offended by this, I suppose you can ping me and I'll reverse the direction of the duplicate marking. Commented Oct 26, 2021 at 3:50
  • @Cody no problem, I agree with your reasoning.
    – anastaciu
    Commented Oct 26, 2021 at 8:08

0

Browse other questions tagged .