Author Topic: My syntax highlighting algorithm for assembly  (Read 180 times)

UniverseIsASimulation

  • Regular Member
  • *
  • Posts: 15
My syntax highlighting algorithm for assembly
« 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

jj2007

  • Member
  • *****
  • Posts: 8504
  • Assembler is fun ;-)
    • MasmBasic
Re: My syntax highlighting algorithm for assembly
« Reply #1 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".

Siekmanski

  • Member
  • *****
  • Posts: 1548
Re: My syntax highlighting algorithm for assembly
« Reply #2 on: June 28, 2018, 04:02:35 AM »
Very nice.
Creative coders use backward thinking techniques as their strategy.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 5476
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: My syntax highlighting algorithm for assembly
« Reply #3 on: June 28, 2018, 04:28:22 AM »
I cannot get the link to work.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :biggrin:

zedd151

  • Member
  • ****
  • Posts: 702
Re: My syntax highlighting algorithm for assembly
« Reply #4 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)

UniverseIsASimulation

  • Regular Member
  • *
  • Posts: 15
Re: My syntax highlighting algorithm for assembly
« Reply #5 on: June 28, 2018, 07:31:18 PM »
Quote
Works 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 look good in Internet Explorer 11.