Since almost every member of the community Codeforces know how to write programs, we decided to abandon the wysiwyg HTML editor, and introduce a geek method. Of course, technical texts will gain much more convenient, and text will look uniform.
Now we use modified Markdown as a markup language for blog posts and comments. Since we use an additional extensions, we called markup simply Codeforces Markup. Codeforces custom tags are available in the editor, I will publish a description of the rest here a little later. In a few words it looks like simplified previous version — double square brackets are replaced by single square bracket.
In addition, we improved typography posts and comments.
See description Markdown using the links:
- http://en.wikipedia.org/wiki/Markdown
- http://daringfireball.net/projects/markdown/syntax
- http://bywordapp.com/markdown/syntax.html
Here's a short list of features:
- insert user handle (use
~tourist
); - italic and bold;
- inline code —
return a == 0 ? b : gcd(b % a, a);
(place it between `); - numerated, unnumerated and nested lists;
- headers;
- autocorrection hyphens with dashes;
- smart URL detection (makes them to be links) http://codeforces.net/;
- tables and images;
- source code highlighting;
- "smart" quotes;
- separate paragraphs with a blank lines;
- special Codeforces tags;
- insert photos like
[photoalbum:PicasaPublicAlbumURL]
; - and much more!
I recall that on Codeforces implement preview, so you do not need crazy experiments on the Markdown in comments:)
I think it's more convinient if the links in post and comment will be opened in "new tab" — for most popular browser (IE, Firefox, Opera) supported tab-browser now.
Just right click -> open in new tab
or middle button ;)
I disagree.
When I need open it in new tab I just click mousewheel, but if I don't want this behaviour(openning in new tab) I can't do it.
IE most popular browser?! :&
http://codeforces.net/problemset/problem/64/B is no longer displaying for me
Here "Statement is not available."
I don't like that all code is now red without highlighting the keywords...
Prettyprint was better I think.
UPD: it seems that it's working in comments, but not in blogs, formatting was discussed here
It works, see http://codeforces.net/blog/entry/3780#comment-76662 Use the editor main menu to insert highlighted source code.
Thanks I found that with your help ;-) Maybe there could be example in blog (in 9.), I thought that all code is "inlined", now I see the difference.
Don't get the urge to reinvent wheels. bbcode is well tested and universal and known to work in comments including code sites. Random wiki markup comes with such complications. Imagine a problem required me to explain something like: http://pastebin.com/7ybg21rP
If I just type the ascii art here, it will look like this: .. ..**..** ..*.*.
For the ascii, maybe you can include them as code:
***..***
..**..**
*.*.*.*.
Hi, this is just a minor bug, but it seems like my username R _ R _ can not be inserted correctly (it became R_R_ because of the '_') :(
Maybe you can use
R\_R\_
-> R_R_I tried, but it does not work :), as you can see below
[user:R_R_]
(btw, I meant inserting my username with color, link in the nice given format)
Can anyone teach me how to upload an image in comments?
Didn't work for me. I uploaded the image on https://pasteboard.co/ . Where do you upload?
http://codeforces.net/blog/entry/43375#comment-280760
Understood. Thanks :)
How to write a code in a comment?
Sanam007