[Code] vs [Quote] for code

For things you would put in a kitty dump.
User avatar
zwei
Posts: 701
Joined: Mon Mar 15, 2021 9:17 pm
Answers: 18
Location: Malaysia
x 185
x 600

[Code] vs [Quote] for code

Unread post by zwei »

Just curious, when it comes to API/macro/code, what do you prefer when you insert your code as answer/question in the forum?

Personally, I prefer to use quote just because i can do some text formatting to indicate some area that need to be change
'Lorem Ipsum
'Lorem Ipsum
'Lorem Ipsum
Code function has a select all option but cant apply any formatting

Code: Select all

'Lorem Ipsum
[color=#FF0000]'Lorem Ipsum[/color]
'Lorem Ipsum
I rarely use upload unless it is a macro that i want to share as a whole.
Far too many items in the world are designed, constructed and foisted upon us with no understanding-or even care-for how we will use them.
User avatar
JSculley
Posts: 643
Joined: Tue May 04, 2021 7:28 am
Answers: 55
x 9
x 877

Re: [Code] vs [Quote] for code

Unread post by JSculley »

We need a proper syntax highlighter such as: https://www.phpbb.com/community/viewtopic.php?t=2557806. I'll request it in the Suggestions area.
User avatar
matt
Posts: 1589
Joined: Mon Mar 08, 2021 11:34 am
Answers: 19
Location: Virginia
x 1219
x 2371
Contact:

Re: [Code] vs [Quote] for code

Unread post by matt »

JSculley wrote: Thu May 13, 2021 9:06 am We need a proper syntax highlighter such as: https://www.phpbb.com/community/viewtopic.php?t=2557806. I'll request it in the Suggestions area.
Ok, this is added, but I'm gonna rely on you guys to tell me if it's working or not. Here's a screen shot of the settings. Looks like they use some named themes. @JSculley if you have experience with this, do you want to suggest a theme to use?
image.png
User avatar
JSculley
Posts: 643
Joined: Tue May 04, 2021 7:28 am
Answers: 55
x 9
x 877

Re: [Code] vs [Quote] for code

Unread post by JSculley »

Solarized. It's pretty popular. I use it everywhere I can. Let's give it a whirl:

Code: Select all

public static void main(String[] args) {
	System.out.println("Hello World!");
}

Code: Select all

int Main()
{
	Console.WriteLine("Hello World!");
}
The highlighting works well. It also gives you a 'Copy' button and a hint at what the language is. Nice.
User avatar
matt
Posts: 1589
Joined: Mon Mar 08, 2021 11:34 am
Answers: 19
Location: Virginia
x 1219
x 2371
Contact:

Re: [Code] vs [Quote] for code

Unread post by matt »

JSculley wrote: Thu May 13, 2021 10:59 am Solarized. It's pretty popular. I use it everywhere I can. Let's give it a whirl:
Ok, I changed the theme to solarizedlight.
Post Reply