You can now use ` or ``` in editor for CODE markup - Printable Version +- QB64 Phoenix Edition (https://staging.qb64phoenix.com) +-- Forum: Official Links (https://staging.qb64phoenix.com/forumdisplay.php?fid=16) +--- Forum: Announcements (https://staging.qb64phoenix.com/forumdisplay.php?fid=18) +--- Thread: You can now use ` or ``` in editor for CODE markup (/showthread.php?tid=1934) Pages:
1
2
|
You can now use ` or ``` in editor for CODE markup - grymmjack - 08-25-2023 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)
etc. Enjoy RE: You can now use ` or ``` in editor for CODE markup - a740g - 08-25-2023 Code: (Select All)
RE: You can now use ` or ``` in editor for CODE markup - mnrvovrfc - 08-25-2023 Good job with the forum enhancements. I need a faster computer and Internet connection. In another forum had to do "ICODE" instead of surrounding text with the grave accent. It sucked. RE: You can now use ` or ``` in editor for CODE markup - grymmjack - 08-25-2023 Thanks gents! It's such a handy thing isn't it @mnrvovrfc to just use backtick? RE: You can now use ` or ``` in editor for CODE markup - SMcNeill - 08-26-2023 (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! RE: You can now use ` or ``` in editor for CODE markup - Kernelpanic - 08-26-2023 I give up! Somehow I didn't understand the " ". RE: You can now use ` or ``` in editor for CODE markup - bplus - 08-26-2023 Code: (Select All)
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. RE: You can now use ` or ``` in editor for CODE markup - Kernelpanic - 08-26-2023 (08-26-2023, 03:22 PM)bplus Wrote: This character does not exist on a German keyboard. The only thing that resembles this is ` but that doesn't work. Code: (Select All)
- And these also not: ´ 'PS: It works with three characters. Ok, thanks! RE: You can now use ` or ``` in editor for CODE markup - Kernelpanic - 08-26-2023 @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. RE: You can now use ` or ``` in editor for CODE markup - grymmjack - 08-26-2023 (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. @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)
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:ONLYin the same sentence without having to click a button, etc. No worries |