When submitting a solution in C++, please select either C++14 (GCC 6-32) or C++17 (GCC 7-32) as your compiler. ×

MikeMirzayanov's blog

By MikeMirzayanov, 12 years ago, translation, In English

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:

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;
  5. headers;
  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

  • Vote: I like it
  • +97
  • Vote: I do not like it

| Write comment?
»
12 years ago, # |
  Vote: I like it -9 Vote: I do not like it

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.

  • »
    »
    12 years ago, # ^ |
      Vote: I like it +21 Vote: I do not like it

    Just right click -> open in new tab

  • »
    »
    12 years ago, # ^ |
      Vote: I like it +9 Vote: I do not like it

    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.

  • »
    »
    12 years ago, # ^ |
      Vote: I like it +35 Vote: I do not like it

    IE most popular browser?! :&

»
12 years ago, # |
  Vote: I like it +16 Vote: I do not like it

http://codeforces.com/problemset/problem/64/B is no longer displaying for me

  • »
    »
    12 years ago, # ^ |
      Vote: I like it +8 Vote: I do not like it

    Here "Statement is not available."

»
12 years ago, # |
Rev. 2   Vote: I like it +3 Vote: I do not like it

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

»
12 years ago, # |
  Vote: I like it -7 Vote: I do not like it

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: .. ..**..** ..*.*.

  • »
    »
    12 years ago, # ^ |
    Rev. 7   Vote: I like it 0 Vote: I do not like it

    For the ascii, maybe you can include them as code:

    ***..***

    ..**..**

    *.*.*.*.

»
12 years ago, # |
Rev. 6   Vote: I like it 0 Vote: I do not like it

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 '_') :(

  • »
    »
    12 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Maybe you can use R\_R\_ -> R_R_

    • »
      »
      »
      12 years ago, # ^ |
      Rev. 5   Vote: I like it 0 Vote: I do not like it

      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)

»
7 years ago, # |
  Vote: I like it +3 Vote: I do not like it

Can anyone teach me how to upload an image in comments?

»
6 years ago, # |
  Vote: I like it -18 Vote: I do not like it

How to write a code in a comment?

»
17 months ago, # |
  Vote: I like it 0 Vote: I do not like it