Click here to Skip to main content
15,899,025 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: Wierd behaviour in Lounge Pin
Chris Maunder7-Dec-09 8:35
cofounderChris Maunder7-Dec-09 8:35 
GeneralQA Question Not Showing in Latest Tab [EDIT: Nevermind] Pin
AspDotNetDev5-Dec-09 23:05
protectorAspDotNetDev5-Dec-09 23:05 
GeneralRe: QA Question Not Showing in Latest Tab Pin
AspDotNetDev5-Dec-09 23:06
protectorAspDotNetDev5-Dec-09 23:06 
GeneralNegative post numbers Pin
OriginalGriff5-Dec-09 21:33
mveOriginalGriff5-Dec-09 21:33 
GeneralRe: Negative post numbers Pin
Luc Pattyn6-Dec-09 1:30
sitebuilderLuc Pattyn6-Dec-09 1:30 
GeneralRe: Negative post numbers Pin
OriginalGriff6-Dec-09 1:35
mveOriginalGriff6-Dec-09 1:35 
GeneralRe: Negative post numbers Pin
Chris Maunder10-Mar-10 10:31
cofounderChris Maunder10-Mar-10 10:31 
GeneralCode Pasting - Auto Detect / Dialog Pin
AspDotNetDev5-Dec-09 14:07
protectorAspDotNetDev5-Dec-09 14:07 
A suggestion...

It would be nice if, when somebody pasted code into any of the various editors here at CP, a little dialog popped up that gave the user options of how to handle the code. It could have a little dialog that asks "what are you trying to paste" and has four buttons: [Code] [Text] [URL] [Other]. You might want to just remove that URL option since you already automatically detect and handle URL's.

If they select "Text", the text is HTML encoded and inserted. If they select "URL", you do what you do now with URL's. If they select "Other", the text is not HTML encoded and is inserted as is (useful for HTML and such that we want in messages sometimes). If they select "Code", they are presented with a new dialog that asks them what kind of code (probably a drop down). The default would probably be "text" and the others would be listed (e.g., "C#", "VB", etc.). Once they click "Paste" (or "OK" or "Done") on that dialog, the code will be HTML encoded and surrounded with PRE tags with the LANG attribute set to the appropriate language.

This feature could be turned off in the list of checkboxes below the edit box. There'd be a new checkbox that would say "Disable paste dialog boxes" (or something like that).

Also, any given dialog would have an optional advanced section. You'd want to hide this from new users so they don't get themselves into trouble. Could make it a new tab or have an "Advanced" button or have a link that says "Advanced" that expands the dialog box and shows more advanced options. Those options could include: "Always show advanced section" (checkbox), "Always HTML encode" (radio), "Never HTML encode" (radio), "Automatically decide whether or not to HTML encode" (radio), "Stop showing this dialog" (checkbox), "Set default programming language" (drop down list).

Also, rather than select "text" as the default language, perhaps that would be the default when the language could not otherwise be detected. You could scan the text to detect the language using various simple means that would only be approximate. For example, you could say anything that contains "<<" is C++, anything containing "SELECT" is SQL, anything containing "DIM" is VB. As you find exceptions to those rules, you can add more rules to make it more accurate. If the language cannot be determined or if there is a conflict between two of the rules (contains both "DIM" and "<<"), you can default to "text" (or whatever the users selects as the default language).

Oh, and you could even have a preview pane that asyncronously updates whenever the user selects a different language. It would show the syntax highligted version of their code (could go to the server to get that preview, as I know dynamically generating it with JavaScript would be too much of a pain).

Anyway, some of those ideas can be toyed around with and modified, but I thought I'd at least give you the ideas.


GeneralRe: Code Pasting - Auto Detect / Dialog Pin
Luc Pattyn5-Dec-09 15:11
sitebuilderLuc Pattyn5-Dec-09 15:11 
GeneralRe: Code Pasting - Auto Detect / Dialog Pin
AspDotNetDev5-Dec-09 15:26
protectorAspDotNetDev5-Dec-09 15:26 
GeneralRe: Code Pasting - Auto Detect / Dialog Pin
Luc Pattyn5-Dec-09 15:36
sitebuilderLuc Pattyn5-Dec-09 15:36 
GeneralRe: Code Pasting - Auto Detect / Dialog Pin
AspDotNetDev5-Dec-09 15:48
protectorAspDotNetDev5-Dec-09 15:48 
GeneralRe: Code Pasting - Auto Detect / Dialog Pin
Chris Maunder7-Dec-09 5:40
cofounderChris Maunder7-Dec-09 5:40 
GeneralRe: Code Pasting - Auto Detect / Dialog Pin
Luc Pattyn7-Dec-09 7:04
sitebuilderLuc Pattyn7-Dec-09 7:04 
GeneralRe: Code Pasting - Auto Detect / Dialog Pin
Chris Maunder7-Dec-09 8:45
cofounderChris Maunder7-Dec-09 8:45 
GeneralFor the wishlist Pin
Rozis5-Dec-09 13:25
Rozis5-Dec-09 13:25 
GeneralQuick answers - Edited by Pin
Nemanja Trifunovic4-Dec-09 8:43
Nemanja Trifunovic4-Dec-09 8:43 
GeneralRe: Quick answers - Edited by Pin
AspDotNetDev4-Dec-09 16:40
protectorAspDotNetDev4-Dec-09 16:40 
GeneralRe: Quick answers - Edited by Pin
Chris Maunder4-Dec-09 18:09
cofounderChris Maunder4-Dec-09 18:09 
GeneralAnother silly spammer Pin
Richard MacCutchan3-Dec-09 22:03
mveRichard MacCutchan3-Dec-09 22:03 
GeneralRe: Another silly spammer Pin
Chris Maunder4-Dec-09 2:19
cofounderChris Maunder4-Dec-09 2:19 
GeneralShould we be able to vote on messages someone posts to the message board on their profile? Pin
Dan Neely3-Dec-09 10:36
Dan Neely3-Dec-09 10:36 
GeneralRe: Should we be able to vote on messages someone posts to the message board on their profile? Pin
Chris Maunder3-Dec-09 12:46
cofounderChris Maunder3-Dec-09 12:46 
GeneralRe: Should we be able to vote on messages someone posts to the message board on their profile? Pin
AspDotNetDev4-Dec-09 16:37
protectorAspDotNetDev4-Dec-09 16:37 
GeneralTest Replication Forum Pin
dan!sh 3-Dec-09 6:45
professional dan!sh 3-Dec-09 6:45 

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

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