Click here to Skip to main content
15,895,142 members

Bugs and Suggestions

   

General discussions, site bug reports and suggestions about the site.

For general questions check out the CodeProject FAQs. To report spam and abuse Head to the Spam and abuse watch. If you wish to report a bug privately, especially those related to security, please email webmaster@codeproject.com

 
GeneralRe: Tried "Apply to join group" - code project mentors Pin
Espen Harlinn1-Jan-12 3:11
professionalEspen Harlinn1-Jan-12 3:11 
GeneralRe: Tried "Apply to join group" - code project mentors Pin
Chris Maunder5-Jan-12 14:30
cofounderChris Maunder5-Jan-12 14:30 
BugJavascript editor is buggy Pin
Randor 30-Dec-11 16:13
professional Randor 30-Dec-11 16:13 
GeneralRe: Javascript editor is buggy Pin
DaveAuld30-Dec-11 20:01
professionalDaveAuld30-Dec-11 20:01 
GeneralRe: Javascript editor is buggy Pin
Randor 30-Dec-11 21:16
professional Randor 30-Dec-11 21:16 
GeneralRe: Javascript editor is buggy Pin
DaveAuld30-Dec-11 21:19
professionalDaveAuld30-Dec-11 21:19 
GeneralRe: Javascript editor is buggy Pin
Randor 30-Dec-11 21:30
professional Randor 30-Dec-11 21:30 
GeneralRe: Javascript editor is buggy Pin
Chris Maunder31-Dec-11 7:16
cofounderChris Maunder31-Dec-11 7:16 
It's not buggy - it just doesn't work as you expect.

By default the editor accepts HTML, so if you type in "vector<unsigned char> v;" then it thinks the < is the start of a HTML tag and processes it as if it were HTML: namely, it tries to ensure it's well formed HTML (hence the weird closing tag), then colourises anything it needs to colourise, then hands it back to the browser for rendering. The browser has no idea what a "unsigned char" tag is so does the correct thing (according to it) and ignores it.

If you had placed the code in a PRE block then our pre-processor / HTML Tidy-up code will auto-encode the < entity and so you would get
C++
vector<unsigned char> v;


When pasting text we sniff what you've pasted and try to guess what's in the text. If we think we see code we'll wrap it in a PRE block (so you get the auto-encode) otherwise we leave it. In either case the Paste Preview window pops up showing you exactly what your pasted text will look like when rendered based on how you choose to paste the text.

You can disable the HTML processing by checking the "Treat my content as plain text, not as HTML" checkbox just below the message preview.

Our options in all of this are:

1. Don't accept HTML at all.

Not a great option because we like being able to have formatted text, and we like being able to wrap code in PRE blocks and have it colourised.

2. Make the editor even smarter.

I'm open to suggestions. The most obvious improvement is that we specifically check all <tag> blocks to see if it is a true HTML tag, and if not, encode the entities. However, this will totally fail for any HTML code posted.

3. Switch to MarkDown.

While this would help with some things, but not others. You still have to indent your code, for instance, 4 spaces to have it formatted correctly, as opposed to wrapping in a PRE or CODE block.

4. Switch to a pure WYSIWYG editor

We tried this. Everyone hated it. WYSIWYG editors depend on the underlying browser editor, and they are all different, and they are all painful to use and to bend into shape to make them usable.


I'm open for further suggestions on how to make this more intuitive.
cheers,
Chris Maunder

The Code Project | Co-founder
Microsoft C++ MVP

GeneralRe: Javascript editor is buggy Pin
Richard MacCutchan31-Dec-11 7:37
mveRichard MacCutchan31-Dec-11 7:37 
GeneralRe: Javascript editor is buggy Pin
Randor 31-Dec-11 17:04
professional Randor 31-Dec-11 17:04 
GeneralRe: Javascript editor is buggy Pin
Richard MacCutchan31-Dec-11 21:30
mveRichard MacCutchan31-Dec-11 21:30 
QuestionRe: Javascript editor is buggy Pin
Randor 31-Dec-11 15:51
professional Randor 31-Dec-11 15:51 
GeneralRe: Javascript editor is buggy Pin
Barry Lapthorn19-Jan-12 8:17
protectorBarry Lapthorn19-Jan-12 8:17 
GeneralRe: Javascript editor is buggy Pin
Chris Maunder24-Jan-12 8:46
cofounderChris Maunder24-Jan-12 8:46 
GeneralRe: Javascript editor is buggy Pin
Barry Lapthorn24-Jan-12 10:37
protectorBarry Lapthorn24-Jan-12 10:37 
SuggestionTo close the copy code window Pin
Wendelius30-Dec-11 9:15
mentorWendelius30-Dec-11 9:15 
SuggestionList of members who viewed the question Pin
RDBurmon30-Dec-11 1:53
RDBurmon30-Dec-11 1:53 
GeneralRe: List of members who viewed the question Pin
Manfred Rudolf Bihy30-Dec-11 2:21
professionalManfred Rudolf Bihy30-Dec-11 2:21 
GeneralRe: List of members who viewed the question Pin
thatraja30-Dec-11 2:29
professionalthatraja30-Dec-11 2:29 
GeneralRe: List of members who viewed the question Pin
RDBurmon30-Dec-11 2:32
RDBurmon30-Dec-11 2:32 
GeneralRe: List of members who viewed the question Pin
Manfred Rudolf Bihy30-Dec-11 3:04
professionalManfred Rudolf Bihy30-Dec-11 3:04 
GeneralRe: List of members who viewed the question Pin
OriginalGriff30-Dec-11 3:48
mveOriginalGriff30-Dec-11 3:48 
GeneralRe: List of members who viewed the question Pin
Manfred Rudolf Bihy30-Dec-11 4:34
professionalManfred Rudolf Bihy30-Dec-11 4:34 
GeneralRe: List of members who viewed the question Pin
thatraja30-Dec-11 3:17
professionalthatraja30-Dec-11 3:17 
GeneralRe: List of members who viewed the question Pin
OriginalGriff30-Dec-11 3:46
mveOriginalGriff30-Dec-11 3:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Flags: AnsweredRejected

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.