Author Topic: New "QB64 $NOPREFIX" code block  (Read 2902 times)

0 Members and 1 Guest are viewing this topic.

FellippeHeitor

  • Guest
New "QB64 $NOPREFIX" code block
« on: February 25, 2020, 01:21:56 pm »
To adapt to QB64's new $NOPREFIX mode, the forum now also allows you to post code without the leading underscore prefix on keywords and still have them properly syntax-highlighted.

To do so, either select QB64 $NOPREFIX in the 'Code' selection box:
  [ You are not allowed to view this attachment ]  

Or manually edit the code box to change 'qb64' into 'qb64np':
  [ You are not allowed to view this attachment ]

That will result in a code box that will properly treat QB64's keywords both with and without the prefix the same way, with proper coloring and linking to the Wiki.
  [ You are not allowed to view this attachment ]  
« Last Edit: February 25, 2020, 01:29:38 pm by FellippeHeitor »

Marked as best answer by on Today at 10:19:31 am

Offline STxAxTIC

  • Library Staff
  • Forum Resident
  • Posts: 1091
  • he lives
    • View Profile
Re: New "QB64 $NOPREFIX" code block
« Reply #1 on: February 25, 2020, 01:27:42 pm »
  • Undo Best Answer
  • Cool! As for the other options in the menu, is there one that's unformatted altogether? Just verbatim text for things like text file contents (in place of DATA) and such.
    You're not done when it works, you're done when it's right.

    FellippeHeitor

    • Guest
    Re: New "QB64 $NOPREFIX" code block
    « Reply #2 on: February 25, 2020, 01:30:54 pm »
    Just use the regular [code]your code[/code] as before, to result in:

    Code: [Select]
    your code
    I couldn't add a "non-formatted" option to the list.
    « Last Edit: February 25, 2020, 01:41:42 pm by FellippeHeitor »