Two Requests for this forum code syntax, thanks! New Posts Default to Chinese Section

Dear Friends at Epic,

Presently, for my end of things at least, when code is posted in a comment, the code loses the coloring and for me shows up as absolutely garish orange on white background, which is nearly impossible to read without squinting.

I have posted a comment on this post to illustrate.

Here’s the normal coloring, see my same code in the comment below to see my point:

//only run on server
AVictoryWarrior* AVictoryGamePlayerController::GetWarriorWithPlayerVibe(int32 &PlayerVibeFuncIn)
{
       //Thank you Marc Audy for this shortened version!!!!
       TActorIterator< AVictoryWarrior > ActorItr(GetWorld());
	while (ActorItr)
	{
		if (Cast(*ActorItr)->PlayerVibe == PlayerVibeFuncIn)
		{
			return *ActorItr;
			
		}
		++ActorItr;
	}
	
	return NULL;
}

Code in the main post or actual full answers gets pretty, easy-to-read coloring.

These facts have lead me to the habit of editing my main post with updates, or posting answers that are not new or different answers, just to get the code to have easier-to-read coloring.

Request

Please change the comment code coloring syntax to match the main post, or at least not be orange on white, not a good combo for anyone I imagine, except maybe goldfish.


Request 2

While on the top of code coloring and syntax

I have run into a ridiculously irritating and simple problem with how the auto-editing posts in this particular forum works

If I try to write

//this is the correct appearance with the carrot symbols intact
TActorIterator  ActorItr(GetWorld());

but I only write it as a single line of code

the end result is this

TActorIterator ActorItr(GetWorld());

and forget it

if I try it write carrot symbols without any code syntax

I get this

TActorIterator ActorItr(GetWorld());

Note that in my original writing of this post I have included the same exact code each time, and the forum itself is modifying the appearance of my code

if the carrot symbols absolutely have to be edited in this way due to forum specific syntax than please at least

Request

make it so that single lines of syntaxed code still include the carrot symbosl

same code as a comment

I absolutely cannot read this

//only run on server
AVictoryWarrior* AVictoryGamePlayerController::GetWarriorWithPlayerVibe(int32 &PlayerVibeFuncIn)
{
       //Thank you Marc Audy for this shortened version!!!!
       TActorIterator< AVictoryWarrior > ActorItr(GetWorld());
	while (ActorItr)
	{
		if (Cast(*ActorItr)->PlayerVibe == PlayerVibeFuncIn)
		{
			return *ActorItr;
			
		}
		++ActorItr;
	}
	
	return NULL;
}

All of this is already fixed and will be included in an update to the UDN software sometime soon.

okay great to know, thanks Jeff!

:slight_smile:

Rama

Just wanted to follow up on this and say

thanks for making these changes!!!

Happy Code Coloring

:slight_smile:

Minor Issue

(by the way new posts default to Chinese section at the moment and I dont see how to change sections after creating the post)

Hey Rama, could you please make a new post and just call it “Test Post”? I’m interested to see where it gets assigned. In the body of the post, feel free to say anything, just make sure it’s clear it’s for testing.

Thanks

Done Stephen!

Always great to hear from you!

:slight_smile:

(had to make the title longer so it would actually post)

:slight_smile:

Rama

by the way Stephen

it seems I can no longer remove an answer’s accepted status to make it faster for you to find and realize there’s new info there.

This might be a problem if a Dev thinks a post is answered and someone wants to say “no it is not answered”

:slight_smile:

Rama

adding new content no longer auto-removes accepted status

this again might make it harder for devs to find new updated information amidst a sea of green seemingly accepted / finished posts