I request the feature of syntax highlighting Assembly and Basic code. As W5VO said, we don't have it yet. However, Assembly is used regularly on this site. And while we're at it, why not add Basic as well?

Both languages aren't included in the standard Google-Prettify package. However, there's an extension for Basic.

There isn't an Assembly extension yet, but perhaps it can be made by the team? It would make already obfuscated (because of being assembly) code better readable.

share
4  
Assembly is very very system dependent though! – Kortuk Apr 23 at 20:38
Assembly has a very simple syntax, compared to Basic and C. Although, highlighting things like jumps would be neat. – Nick Alexeev Apr 24 at 0:43
@Kortuk AFAIK the instructions are different for each system, but isn't the syntax the same? I once looked into TI ASM and it looked pretty much the same as PIC ASM. But I might be wrong. – Camil Staps Apr 24 at 5:03
1  
@CamilStaps Yes, you are probably correct there, I was thinking of how different commands are and how hard highlighting would be, but if you did something simpler it would be very easy. – Kortuk Apr 24 at 14:12
Beyond just the fact that different ISAs have different op-codes, there is a lot of variation between assembly languages: How to indicate hex/binary/octal numbers, how to indicate registers as operands, how to indicate different addressing modes, what kind of operations can be done to calculate operand addresses, how to indicate comments ... these things all change between different assembly languages. – The Photon Apr 25 at 16:02
1  
A worthwhile syntax higlighter would need to understand at least some of that. Just highlighting the first token on the line (because that's the op-code) isn't really very useful. – The Photon Apr 25 at 16:03

You must log in to answer this question.

Browse other questions tagged