Click here to Skip to main content
15,897,371 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: Lists Pin
AspDotNetDev28-Nov-09 15:07
protectorAspDotNetDev28-Nov-09 15:07 
GeneralRe: Lists Pin
Chris Maunder1-Dec-09 4:21
cofounderChris Maunder1-Dec-09 4:21 
GeneralRe: Lists Pin
Dan Neely1-Dec-09 5:02
Dan Neely1-Dec-09 5:02 
GeneralRe: Lists Pin
Luc Pattyn1-Dec-09 5:38
sitebuilderLuc Pattyn1-Dec-09 5:38 
GeneralRe: Lists Pin
Chris Maunder1-Dec-09 6:25
cofounderChris Maunder1-Dec-09 6:25 
GeneralRe: Lists Pin
Luc Pattyn1-Dec-09 7:08
sitebuilderLuc Pattyn1-Dec-09 7:08 
GeneralRe: Lists Pin
Chris Maunder1-Dec-09 7:20
cofounderChris Maunder1-Dec-09 7:20 
GeneralRe: Lists Pin
Luc Pattyn1-Dec-09 8:03
sitebuilderLuc Pattyn1-Dec-09 8:03 
I once (before those checkboxes got added) suggested to automatically HTML-encode everything that gets pasted inside PRE blocks, which you (rightfully I guess) rejected since code too could take advantage of bold and italics and such.

Now since you're considering a new language for formatting, I'll try a variant (may need some refinement, but it should remain simple and get published):

everything that gets pasted is:
1. checked for content (see below), and:
2a. either pasted with PRE tags around it, with automatic HTML encoding, with the correct language setting, and with untabbing (TAB becomes 1 to 4 spaces up to next multiple of 4)
2b. or pasted as is.

2a. really means a straight copy from IDE to edit box, no manual tweaking necessary.
remains to be solved: optional bold/italic/highlighting; I would accept such formatting only can be done after pasting (it is not present in my source file anyway!), with the existing widgets, and gets lost when copying again.

Content checking rules could require all of the following to be true for code:
- not sure: cursor must be on an empty line
- clipboard must hold multi-line text
- that text must start with a TAB, or two spaces, or one of a limited set of keywords which may appear at the start of a source file (imports in VB.NET, using in C#, <?PHP in PHP, etc; but what with comments, i.e. double slash, slash-asterisk, single quote, etc?)

Language recognition is more difficult. If it was a keyword that made it code, use that info. Otherwise, use the first tag. Otherwise use a user preference? Otherwise set it to "text" (or ask for it in a popup!), do not set it to a wild guess.

BTW: please discard CODE tags or make them as dumb as possible, let us push people towards PRE, not CODE tags. One reason is IMO contrast is very bad with syntax coloring on the blueish background.

Sanity check: valid code must remain valid code, i.e. a publish-copyToIDE-compile cycle must be successful, no matter what the intermediate language(s) do for formatting. [ADDED]Loosing TABS seems acceptable[/ADDED]

Ultimate test: publishing some HTML source. I think I also want two new widgets: paste as is, and paste as code; so I can force something to be code, or not to be code.

I hope/think this is rather easy for users, documentors and implementors.

PS: if you do this on QA, I think I also want it on all (remaining) forums. PRE tags are not just for code, they are useful on anything that takes advantage of a nonproportional font and a different background.


Big Grin | :-D

Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


modified on Tuesday, December 1, 2009 2:44 PM

GeneralRe: Lists Pin
Chris Maunder8-Jan-10 4:08
cofounderChris Maunder8-Jan-10 4:08 
GeneralRe: Lists Pin
Luc Pattyn8-Jan-10 4:26
sitebuilderLuc Pattyn8-Jan-10 4:26 
GeneralRe: Lists Pin
Dan Neely1-Dec-09 7:10
Dan Neely1-Dec-09 7:10 
GeneralRe: Lists Pin
Luc Pattyn1-Dec-09 7:19
sitebuilderLuc Pattyn1-Dec-09 7:19 
GeneralRe: Lists Pin
Dan Neely1-Dec-09 7:40
Dan Neely1-Dec-09 7:40 
GeneralRe: Lists Pin
Luc Pattyn1-Dec-09 8:10
sitebuilderLuc Pattyn1-Dec-09 8:10 
GeneralRe: Lists Pin
Dan Neely1-Dec-09 8:48
Dan Neely1-Dec-09 8:48 
GeneralRandom Articles Pin
AspDotNetDev27-Nov-09 18:15
protectorAspDotNetDev27-Nov-09 18:15 
GeneralRe: Random Articles Pin
AspDotNetDev27-Nov-09 19:28
protectorAspDotNetDev27-Nov-09 19:28 
GeneralRe: Random Articles Pin
Chris Maunder8-Sep-10 2:51
cofounderChris Maunder8-Sep-10 2:51 
GeneralRe: Random Articles Pin
AspDotNetDev10-Sep-10 17:59
protectorAspDotNetDev10-Sep-10 17:59 
GeneralRe: Random Articles Pin
Chris Maunder17-Sep-10 15:32
cofounderChris Maunder17-Sep-10 15:32 
GeneralRe: Random Articles Pin
AspDotNetDev17-Sep-10 17:27
protectorAspDotNetDev17-Sep-10 17:27 
GeneralEnquiries / Questions Pin
aljodav27-Nov-09 9:32
aljodav27-Nov-09 9:32 
GeneralRe: Enquiries / Questions Pin
Chris Maunder27-Nov-09 9:40
cofounderChris Maunder27-Nov-09 9:40 
JokeRe: Enquiries / Questions Pin
Tom Deketelaere27-Nov-09 12:25
professionalTom Deketelaere27-Nov-09 12:25 
GeneralRe: Enquiries / Questions Pin
Chris Maunder28-Nov-09 3:02
cofounderChris Maunder28-Nov-09 3:02 

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.