### MikeMirzayanov's blog

By MikeMirzayanov, 8 years ago, translation, ,

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.

See description Markdown using the links:

Here's a short list of features:

1. insert user handle (use ~tourist);
2. italic and bold;
3. inline code — return a == 0 ? b : gcd(b % a, a); (place it between );
4. numerated, unnumerated and nested lists;
6. autocorrection hyphens with dashes;
7. smart URL detection (makes them to be links) http://codeforces.com/;
8. tables and images;
9. source code highlighting;
10. "smart" quotes;
11. separate paragraphs with a blank lines;
12. special Codeforces tags;
13. insert photos like [photoalbum:PicasaPublicAlbumURL];
14. and much more!

I recall that on Codeforces implement preview, so you do not need crazy experiments on the Markdown in comments:)

MikeMirzayanov

• +97

 » 8 years ago, # |   -9 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.
•  » » 8 years ago, # ^ |   +21 Just right click -> open in new tab
•  » » » 8 years ago, # ^ |   0 or middle button ;)
•  » » 8 years ago, # ^ |   +9 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.
•  » » 8 years ago, # ^ |   +35 IE most popular browser?! :&
 » 8 years ago, # |   +16 http://codeforces.com/problemset/problem/64/B is no longer displaying for me
•  » » 8 years ago, # ^ |   +8 Here "Statement is not available."
 » 8 years ago, # | ← Rev. 2 →   +3 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
•  » » 8 years ago, # ^ |   +1 It works, see http://codeforces.ru/blog/entry/3780#comment-76662 Use the editor main menu to insert highlighted source code.
•  » » » 8 years ago, # ^ |   0 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.
 » 8 years ago, # |   -7 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/7ybg21rPIf I just type the ascii art here, it will look like this: .. ..**..** ..*.*.
•  » » 8 years ago, # ^ | ← Rev. 7 →   0 For the ascii, maybe you can include them as code:***..***..**..***.*.*.*.
 » 8 years ago, # | ← Rev. 6 →   0 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 '_') :(
•  » » 7 years ago, # ^ |   0 Maybe you can use R\_R\_ -> R_R_
•  » » » 7 years ago, # ^ | ← Rev. 5 →   0 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)
 » 2 years ago, # |   +3 Can anyone teach me how to upload an image in comments?
•  » » 2 years ago, # ^ |   +3 Upload your Image on the internet Copy it's URL In comment tool , press on picture icon Paste the URL , then ok.
•  » » » 2 years ago, # ^ |   0 Didn't work for me. I uploaded the image on https://pasteboard.co/ . Where do you upload?
•  » » 2 years ago, # ^ |   0
•  » » » 2 years ago, # ^ | ← Rev. 2 →   0 Understood. Thanks :)
 » 13 months ago, # |   -18 How to write a code in a comment?
 » 2 months ago, # | ← Rev. 2 →   0 Hi guys,Is it a way to have a pre-formatted block of text in monospace font without highlighting and literally as it is copy-pasted (specifically, without interpreting dollar sign or other symbols specially)?(enclosing the text between text and  did not help)Thanks in advance!UPD: 
...
 does partially help but it still does not escape the dollar sign (\$`) special behaviour.