Game Development Community

Suggestion: MarkupLite text formatting within code tags

by Shaderman · in Site Feedback · 05/12/2009 (3:01 am) · 5 replies

First of all: I really like the new site now but have a suggestion though ;) IMO it would be great to have text formatting (at least the bold tag) working within code tags to highlight changes in posted code.

Example:
[b]this should be bold :)[/b]

Sorry if this was suggested before - I didn't follow the Site Feedback forums.

#1
05/12/2009 (1:22 pm)
personally i disagree because of the dangers of having markup tags conflict with legitimate code. i think the old site used to respect markup within codeblocks, which was actually responsible for many coders using "n" as a default iterator rather than "i", because code like "array[ i ].foo()" would be interpreted as italics.
#2
05/12/2009 (2:00 pm)
I would have said what Orion said.
#3
05/12/2009 (9:46 pm)
I get your point Orion but don't see a problem with the new forums. Let's make a test:

This is bold and this italic.

I don't see a copy & paste problem with several editors, but maybe it depends on the browser or OS and I just don't see it here.
#4
05/12/2009 (10:28 pm)
The problem isn't copying and pasting bold or italic text, but in how the markup tags could possibly conflict with the 'real' code in a codeblock, think about it:
array[b]
array[i]
It did in fact happen a few times when the new site was first launched -- I know because I pointed it out, so did other people.
#5
05/12/2009 (11:00 pm)
Oh I see (a 2nd coffee was needed to get my brain going :)). Thanks for the explanation Michael.