You can now use ` or ``` in editor for CODE markup
#1
Heart 
Greetings QB64 PE fam!

Since the rest of the universe uses
CODE
(discord, slack, github, etc.) I implemented the same here on the forum.

Now you can insert stuff like
_NEWIMAGE(800, 600, 32)
with backticks "
" and "
" and it should evaluate INLINE as code.

You can also now use 3 backticks to open and close, and it will be the same as qb bbcode.

Code: (Select All)

PRINT "HELLO QB64 PE Fam!"

etc.

Enjoy Smile
grymmjack (gj!)
GitHubYouTube | Soundcloud | 16colo.rs
Reply
#2
Code: (Select All)

PRINT "Like this?"

PRINT "This is awesome! Thanks Grymm!"

 Smile
Reply
#3
Thumbs Up 
Good job with the forum enhancements. I need a faster computer and Internet connection. [Image: icon_cry.gif]

In another forum had to do "ICODE" instead of surrounding text with the grave accent. It sucked.
Reply
#4
Thanks gents! It's such a handy thing isn't it @mnrvovrfc to just use backtick?
grymmjack (gj!)
GitHubYouTube | Soundcloud | 16colo.rs
Reply
#5
(08-25-2023, 10:44 PM)grymmjack Wrote: Thanks gents! It's such a handy thing isn't it @mnrvovrfc to just use backtick?

Great job @grymmjack -- at this rate, I'm going to have to give you the exceptional 10% pay increase this year, instead of the normal 5% maximum which we normally offer!!  Keep up the excellent work!   Big Grin
Reply
#6
I give up! Somehow I didn't understand the " ".  Sad
Reply
#7
Code: (Select All)
 I give up! Somehow I didn't understand the " ".  [Image: sad.png]

The back ticks are right under the esc key on top left side of USA keyboard don't know German?

Use 3 back tics to post code instead of code tag which apparently causes some people great difficulty ;-))

If I recall correctly, something like this was used at Discord for posting code lines.
b = b + ...
Reply
#8
(08-26-2023, 03:22 PM)bplus Wrote:
Code: (Select All)
 I give up! Somehow I didn't understand the " ".  [Image: sad.png]

The back ticks are right under the esc key on top left side of USA keyboard don't know German?

Use 3 back tics to post code instead of code tag which apparently causes some people great difficulty ;-))

If I recall correctly, something like this was used at Discord for posting code lines.
[Image: KS001-US.jpg]

This character does not exist on a German keyboard. The only thing that resembles this is ` but that doesn't work.

Code: (Select All)
Print "Hallo!" 
- And these also not: ´ '

PS: It works with three characters. Ok, thanks!
Reply
#9
@grymmjack - good addition if one know how to do it. Since I'm a bit lazy, I keep clicking on the icon in the top left.  Big Grin
Reply
#10
(08-26-2023, 04:47 PM)Kernelpanic Wrote: @grymmjack - good addition if one know how to do it. Since I'm a bit lazy, I keep clicking on the icon in the top left.  Big Grin

@Kernelpanic no worries.

Use what works best for you.

It is exactly 3 backticks to open a qb code block, 3 backticks to close a qb code block.

It is exactly 1 backtick to open an inline code block, and 1 backtick to close an inline code block.

Example of 3:
Code: (Select All)

PRINT "Hi, Kernelpanic!"

Example of 1:
The point of adding this wasn't to make it confusing, but to make it easier. Yep, exactly as @bplus says, in Discord and GitHub, etc. these are ways we can show code, or specific syntax.

There is no way to do an inline code block without using HTML so the 1 backtick might be a good complement to your button click @Kernelpanic.

So you could say stuff like
$_CONSOLE:ONLY
in the same sentence without having to click a button, etc.

No worries Smile
grymmjack (gj!)
GitHubYouTube | Soundcloud | 16colo.rs
Reply




Users browsing this thread: 3 Guest(s)