Author Topic: Extended syntax highlighting added  (Read 5947 times)

0 Members and 1 Guest are viewing this topic.

FellippeHeitor

  • Guest
Re: Extended syntax highlighting added
« Reply #15 on: April 27, 2019, 11:26:13 pm »
On Windows 10 / Firefox, the line numbers are not being highlighted.

Great to hear. I just tested in Chrome and line numbers are out of selection too. My initial testings were with Safari, hence my remark.

Offline GTC

  • Newbie
  • Posts: 49
  • Programmer's motto: *This* time it will work.
    • View Profile
Re: Extended syntax highlighting added
« Reply #16 on: April 28, 2019, 03:46:12 am »
Nice work. Thank you.

FellippeHeitor

  • Guest
Re: Extended syntax highlighting added
« Reply #17 on: April 28, 2019, 11:32:10 am »
Following the addition of syntax highlighting to the code boxes in this forum, I have also added the same code highlighting library to BasBIN (www.qb64.org/basbin) which means that code snippets shared will also get the special treatment. This is a sample result: https://qb64.org/basbin/2039/bas (to be automatically deleted in 30 days).
« Last Edit: April 28, 2019, 11:43:51 am by FellippeHeitor »

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: Extended syntax highlighting added
« Reply #18 on: April 28, 2019, 12:43:55 pm »
Hi
it works fine also using Opera

Code: QB64: [Select]
  1. '
  2. '***************************************************************************
  3. '
  4. ' Definisce il tipo necessario per INTERRUPT
  5. '
  6. TYPE RegType
  7.     ax AS INTEGER
  8.     bx AS INTEGER
  9.     cx AS INTEGER
  10.     dx AS INTEGER
  11.     bp AS INTEGER
  12.     si AS INTEGER
  13.     di AS INTEGER
  14.     flags AS INTEGER
  15. '
  16. ' Definisce il tipo necessario per INTERUPTX
  17. '
  18. TYPE RegTypeX
  19.     ax AS INTEGER
  20.     bx AS INTEGER
  21.     cx AS INTEGER
  22.     dx AS INTEGER
  23.     bp AS INTEGER
  24.     si AS INTEGER
  25.     di AS INTEGER
  26.     flags AS INTEGER
  27.     ds AS INTEGER
  28.     es AS INTEGER
  29. '
  30.  
  31. ' PREDICHIARAZIONI SEZIONE SUB  inutile per QB64
  32. DECLARE SUB attivamouse ()
  33. DECLARE SUB cercamouse ()
  34. DECLARE SUB rilevamouse ()
  35. DECLARE SUB spegnimouse ()
  36.  
Programming isn't difficult, only it's  consuming time and coffee

FellippeHeitor

  • Guest
Re: Extended syntax highlighting added
« Reply #19 on: April 28, 2019, 01:02:49 pm »
Great to hear! Thanks, TempodiBasic!

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
Re: Extended syntax highlighting added
« Reply #20 on: April 28, 2019, 08:14:17 pm »
ROFL - What happened to 20-minutes? Reminds me of when I was coding my initial practice software. "Honey, are you coming to bed yet? Yeah, in 15-minutes, I'm just finishing up!" It was really hard convincing her just 15-minutes had elapsed, when the sun was already up.

Hey, was that song Back in the Highlight?


It used to seem to me that my code ran way too slow
And I had to save on memory just so I could make it go
But then came sixty-four and a forum to post code
With a box to highlight statements and a button to upload

I'll be back in the highlight again
All windows I closed one time will open up again
I'll be back in the highlight again
All the eyes that watched me once will smile and take me in

Pete 😁

- I once asked Sir Elton John how long he thought I'd spend in the loony bin? That's were the lyrics "I thinks it's gonna be a long, long time..." came from.
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

FellippeHeitor

  • Guest
Re: Extended syntax highlighting added
« Reply #21 on: April 28, 2019, 09:38:14 pm »
🤷‍♂️
« Last Edit: April 29, 2019, 10:05:29 am by FellippeHeitor »