The MASM Forum

General => The Campus => Topic started by: UniverseIsASimulation on June 27, 2018, 11:20:19 PM

Title: My syntax highlighting algorithm for assembly
Post by: UniverseIsASimulation on June 27, 2018, 11:20:19 PM
So, guys, what do you of the syntax highlighting algorithm for assembly I've implemented in my web-app?
http://flatassembler.000webhostapp.com/compiler.html (http://flatassembler.000webhostapp.com/compiler.html)
Title: Re: My syntax highlighting algorithm for assembly
Post by: jj2007 on June 28, 2018, 02:10:46 AM
Well done, it works, but the colours could be a bit brighter. At first sight I thought "which highlighting? it's all dark grey".
Title: Re: My syntax highlighting algorithm for assembly
Post by: Siekmanski on June 28, 2018, 04:02:35 AM
Very nice.
Title: Re: My syntax highlighting algorithm for assembly
Post by: hutch-- on June 28, 2018, 04:28:22 AM
I cannot get the link to work.
Title: Re: My syntax highlighting algorithm for assembly
Post by: zedd151 on June 28, 2018, 06:41:16 AM
Works fine in IE, Windows 7 Ultimate.

I agree with jj about the low contrast, or subdued colors.

But otherwise it's nice.    8)
Title: Re: My syntax highlighting algorithm for assembly
Post by: UniverseIsASimulation on June 28, 2018, 07:31:18 PM
QuoteWorks fine in IE, Windows 7 Ultimate.
Well, that is to be expected. Internet Explorer has a bit of an unusual way of supporting JavaScript.
When you try to do something related to string manipulation and array manipulation, no matter how complicated, it works without problems. For instance, the web-app I linked to works even in Internet Explorer 6.
Yet, when you try to do anything graphics-related in JavaScript, Internet Explorer, unlike any other major browser, behaves in mysterious ways. I had to spend hours of experimenting with various JavaScript trickery to make my homepage (http://flatassembler.000webhostapp.com/) look good in Internet Explorer 11.

NB: Admin' EDIT - The "Homepage", no longer exists.