|
A "view source" button/link might be of use. That way, you can see what they typed without all the funkiness that HTML might do to code that is not in PRE tags or that was not HTML encoded. And if that view allowed the user to preview but not save the message, even better. Then we can just toss in some PRE tags, click "preview" and see everything well formatted. And preventing others from actually being able to modify the post would avoid issues of some users modifying others' posts to suit their fancy.
Visual Studio is an excellent GUIIDE.
|
|
|
|
|
When the article is rated 'Poor', a quick textbox pops up prompting for the reason and the subject is like 'My vote of 1'.
My concern is after submitting this, the webpage should do any of the following:
1) Make the comment appear on the page immediately using some DOM manipulation trick.
2) Reload the page.
Or at least a plain polite message replacing the voting control panel stating that 'Your vote and associated comments have been registered. Please reload the page'.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
Already listed here[^].
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
|
At times I admit that truant weeds needs to be cleared from the beautiful garden called CP forums. I feel that the current cleanup process is rather incomplete. Check out the following link:
http://www.codeproject.com/script/Membership/View.aspx?mid=3249451[^]
It says 'Unable to load the requested member's information.' but just a few lines above it, it is able to spell out the user's name:
Member Profile: Emil - Gabriel
Can something be done to fill the gaps?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
That member was removed for trolling the lounge.
It's been discussed a few threads back what to do with the message since it indicates a bug while it actually is a removed account.
|
|
|
|
|
Tom Deketelaere wrote: That member was removed for trolling the lounge.
Yes Tom. I actually followed his profile URL only from that thread and only after that I observed this bug.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
K
|
|
|
|
|
Whilst posting the observation in "HTML Emitted in Forums List Page", I felt that 'code block' and 'inline code' does not help in certain cases in providing a light indentation without syntax coloring effects.
I would say something like Google Mail's blockquoting trick to be a more effective tool for the purpose.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
Is someone else seeing this issue too?
Page: http://www.codeproject.com/script/Forums/List.aspx[^]
CTRL+F to 'Article Writing'. In the description column, you can see something like below:
Discuss writing articles, add your requests for articles here, or search for ideas for a new article. <span style="color:red;font-weight:bold">Do not post programming questions here</span>
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
Fixed.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
|
|
Unfortunately that service was discontinued back in the time of Adam.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
|
|
Hi Chris,
for some of the articles I'm writing I need more background color facilities than you currently support.
1.
When discussing several programming languages in a single article, I would like to give code snippets (i.e. PRE blocks) different background colors according to their language. I'm interested in a greenish background (#DDFFDD) and a blueish background (#DDDDFF) which I typically use for VB.NET and C/C++ code; while doing so, I don't need any syntax coloring.
So my question is: could you support some keyword inside the PRE tag allowing background color selection, either as a number, or from a limited set. I don't need/want it linked to the language option, as I will often use lang="text" anyway.
Here[^] is a simple two-color example of what I mean; my upcoming P/Invoke articles will have many more snippets, needing three colors.
2.
[Of lesser importance] Sometimes I feel the need to highlight a few words in regular text. Example: when I applied my V1.1 revision to my LPTextFileDiff article, I wanted to highlight the changes with a yellow background, so I added some spans (e.g. <p><span style='background-color:yellow'>[New paragraph since V1.1]</span>...</p> ) which your article wizard promptly removed. Any solution would be welcomed.
[ADDED]
3.
I wouldn't mind having the above functionality available in messages too.
[/ADDED]
TIA
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
Local announcement (Antwerp region): Lange Wapper? Neen!
modified on Monday, September 21, 2009 4:38 PM
|
|
|
|
|
You can already do this in articles and messages:
This is a blue background
Just add the style="background-color:#DDDDFF" to the PRE block.
We also have some CSS classes you can use with span tags within PRE blocks:
This is a blue background
Use "<span class="highlight">blue</span>" for the highlight. The classes we offer for code highlighting are highlight and emphasis.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
|
Is what you offer documented anywhere, or do we need to poke around in your css files to find it?
The latest nation. Procrastination.
|
|
|
|
|
Thanks Chris, it works fine on messages, I'll have to check again for articles.
I'm still puzzled about how the spans got removed in my latest article...
Luc Pattyn
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
Chris Maunder wrote: This is a blue background
It looks purple to me.
If at first you don't succeed, you're not Chuck Norris.
|
|
|
|
|
Talk to Luc about his colour choices.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
|
While I don't plan a carreer as a color consultant, I think this is purple whereas this bluesish color (#DDDDFF) you used before is somewhere in the middle between Lavender (#E6E6FA) and LightSteelBlue (#B0C8DE) according to the .NET known colors[^].
Luc Pattyn
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
If we cared that much about the difference between blueish purple and blue we'd be designers, not coders.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
|
Chris, I'd like to piggy-back a request to this one. Just now I was scanning an article and thought for a moment I was reading C#. The language was Java.
I was wondering if you could come up with different style sheets for authors to choose from that might have different conventions for different languages. There's so much .Net stuff here that I automatically associate CodeProject orange with those languages, and have to look twice for C++ or Java, just to make sure.
Just a thought. Thanks.
- Owen -
|
|
|
|
|
If authors provide their own custom stylesheet for their code snippets then I don't see that it will make it easier to see what is C# and what is Java. All it will show is different colours in code.
I very much want to stick to standard colours, so the best approach that I can see is to provide a standard stylesheet for Java, C++, C# etc. As far as I know the stylesheet for C++ and C# (and all languages within Visual Studio) are essentially the same. If the Java or PHP community have their own standard colours then I'd be more than happy to update the colours or those languages. Send em in and I'll get it done.
One wrinkle in all of this, though, is that current articles would not be udpated with the new colours until we reedited them.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
|
Chris Maunder wrote: I very much want to stick to standard colours, so the best approach that I can see is to provide a standard stylesheet for Java, C++, C# etc.
That's exactly what I meant, i.e. separate standard stylesheets for each language. Authors can always override at their own discretion. And even these stylesheets could be an override for the one you're already using.
Is it really necessary to re-edit existing articles? I'm a novice user of stylesheets, but if it's possible, perhaps the existing one could be made sensitive to the article classification. Otherwise, just leave it; simply provide new choices for authors of new articles, and send e-mail to the rest. What's a few million more e-mail?
- Owen -
|
|
|
|
|
I'm not keen on allowing authors to change the stylesheets because that then leads to inconsistent colours between articles. If there's a general consensus that the current colours are awful then I'd rather just change the main stylesheet.
As to different styles / colours for different languages this would have to be done by changing the class names for the style wrappers used in colourisation.
Currently when we colourise we wrap each keyword in a <span class="X"> tag, where X = "code-keyword" or "code-string". These are shared among all languages and the colourising is done at edit time (not at display time). To provide different colours for different languages I'd have to have code-keyword-Java and code-string-Ruby etc. and we would have to re-colourise each article to replace the current styles with the language specific styles.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|