|
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
|
|
|
|
|
I don't think authors should be changing stylesheets, either. But I do think they could be given a choice of more than one stylesheet, or choice of select classes within the one stylesheet. I agree that you need to maintain complete control over the stylesheet for the sake of the website.
Is it possible to just serve up a different stylesheet (with all the same class names), depending on the presence or absence of certain other keywords in an article?
- Owen -
|
|
|
|
|
Hi
Not sure where to post this, so perhaps you could issue a general warning. I just received the following enail, sent to my CodeProject address. It is obviousy a scam, but other members may not be s familiar with this type of con
---------------------------------------------------------------------------------------
This is a direct email response to your message on the page "General Database". This message has not appeared on the discussion board for that page.
Message from ckou00 <ckou0001@yahoo.fr>:
Urgent from Chantal Kouakou
My Dear one,
I am Chantal Kouakou, the only child of Late Mr and Mrs Kouakou My father was a very wealthy cocoa merchant in Abidjan , the economic capital of Ivory Coast , my father was poisoned to death by his business associates on one of their outings on a business trip.
My mother died when I was still a child and since then my father took me so special. Before the death of my father on 30th June 2006 in a private hospital here in Abidjan he secretly called me on his bed side and told me that he has the sum of Fifteen million, United State Dollars. USD ($15,000,000.00) left in fixed / suspense account in one of the prime bank here in Abidjan in favour of his partner though he did not mention any name,
The also explained to me that it was because of this wealth that he
was poisoned by his business ssociates. That I should seek for a foreign partner in a country of my choice where i will transfer this money and use it for investment purpose such as real estate management or hotel management.
Dear, I am honourably seeking your assistance in the following ways:
(1) To provide a bank account into which this money would be transferred to.
(2) To serve as a guardian of this fund since I am only 23years.
(3) To make arrangement for me to come over to your country to further my education and to secure a resident permit in your country.
Moreover, dear, i am willing to offer you 15% of the total sum as
compensation for your effort/ input after the successful transfer of this fund into your nominated account overseas.
Furthermore, you indicate your options towards assisting me as I believe that this transaction would be concluded within fourteen (14) days you signify interest to assist me.
This fortune i have revealed to you should remain confidential as it only you who i have told about it.
Anticipating to hear from you soon. ckou0001@yahoo.fr
Thanks and God Bless.
Yours faithfully
Miss. Chantal Kouakou
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
How could anybody on this site not be familiar with the Nigerian?
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Don't overestimate people... Think of the ones who post like this:
"hi my name is _____ i need to make _____ program plz giv me code k thx bye"
And think of how they'd respond to a 419 scam.
|
|
|
|
|
Ian Shlasko wrote: Don't overestimate people... Think of the ones who post like this:
"hi my name is _____ i need to make _____ program plz giv me code k thx bye"
And think of how they'd respond to a 419 scam and rejoice .
FTFY
The latest nation. Procrastination.
modified on Monday, September 21, 2009 4:32 PM
|
|
|
|
|
But Sir, Abidjan is in Ivory Coast, that is miles away from Nigeria.
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!
|
|
|
|
|
Wow, well that makes all the difference then. It must be genuine because scammers never think to change things
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Pete O'Hanlon wrote: How could anybody on this site not be familiar with the Nigerian?
True, but it is the first time I have had this sent from a CP user directly to my CP email address, so it was just a heads up.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
Ashfield wrote: This fortune i have revealed to you should remain confidential as it only you who i have told about it.
And me!
This userid was setup today so I suggest it be removed forthwith before the entire membership of CP gets spammed. Oh wait, maybe we wouldn't mind so much if certain trolls persons received the odd plate of delicious spam?
|
|
|
|
|
If you could forward me the email directly then I'll remove the account.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
|
|
Articles are organised by topic (where possible) and tagged with one or more language attributes. We already have a tag for ASM. All that you need to do is post your article within the appropriate topic area.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
|
Thanks very much, i'm going to see.
Best Regards,
Nathan Paulino Campos
|
|
|
|
|
Hi,
my current nickname (cazic72) stems from a time I worked on libxml/libxslt2;
it's absolete and I would like to change it to Casimodo72.
Does you system allow to change nicknames?
If not, do I have to delete my account and create a new one? - or how do I proceed?
Regards,
Kasimier
[edited] fixed a typo [/edited]
modified on Sunday, September 20, 2009 8:49 PM
|
|
|
|
|
At the top of the page is a set of links...
Cazic72 | My Settings | My Groups | Watched Items | My Bookmarks | My Articles | Sign out
Click on My Settings and under the Name section, change it to what you would like it to be.
Your account remains the same, just the name is changed.
------------------------------------
"Men may make bad decisions, immoral decisions or just plain wrong decisions, but at least they make decisions. Women on the other hand..."
Patrick Kielty 2006
|
|
|
|
|
Thanks Dalek Dave, that worked fine.
Thanks & regards,
Kasimier
|
|
|
|
|
I just realized that Dalek should really not be your real name
I watched Doctor Who the last couple of weeks (yes, I didn't know about the Doctor until then) and feel a bit ashamed that I didn't realize that I'm responding to a Dalek - Daleks are superior.
Regards,
Kasimier
|
|
|
|
|
Stephen Hawking is the Mark 1 Dalek. (Or perhaps he is he forerunner of Davros[^]
------------------------------------
"Men may make bad decisions, immoral decisions or just plain wrong decisions, but at least they make decisions. Women on the other hand..."
Patrick Kielty 2006
|
|
|
|
|
Hi,
I wrote my first article here at Goodies for RIA Services [^]
What is the estimated time for you guys here to approve an article to be published for public?
Regards,
Kasimier
|
|
|
|
|
Hi,
For gold members it appears as the second one in the "articles-waiting-for-approval" list on the CodeProject home page; as soon as one of the goldies approves it, it would become public. That may take a few days, keep in mind it is weekend now.
The article is about Silverlight, of which I know nothing, so I'm not going to read or approve it. Also, it is very very short. In my view it would have to be a exceptionally good text to pass.
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!
|
|
|
|
|
Hi Luc,
"Also, it is very very short. In my view it would have to be a exceptionally good text to pass."
Does this imply that a processor with a bigger public API would have a better chance of being posted here?
The intent was to provide access to the code that comes with the download of that article.
The code was first posted in the RIA Services forum: http://forums.silverlight.net/forums/t/121127.aspx[^]
I now realize that CodeProject might not be that great to provide prompt access to code.
I.e., I'm not that interested in a code repository, where you cannot predict if the code will actually be posted.
Thanks & regards,
Kasimier
|
|
|
|