Code.Re — minimalistic service to embed snippets

last year abrowser was presented Codeo — minimalistic analogue Pastebin. Over the past month, I completely rewrote the service has added a number of new features, and moved it to a new domain (code.re).






The basic concept of the service remains unchanged — the minimum effort to get the result :)
Enter or paste the code, and a link to it will immediately appear in the address bar.
When editing someone else's code automatically creates its copy to the new address.

So, about the new features.

New design

Now the default service decorated in dark colours, and for those who like light themes on the top bar there is a special switch. By the way, in order to better focus on the content of the record, the top panel is also possible to hide the switch.

Long and short links

A new button on the bottom panel allows you to switch from short links to long:

code.re/5CF
code.re/CG30AJmw

Accounts and APIs

You can now create an account to see a list of your recordings, delete them and edit. With the rapid social login is not required to fill any extra fields.

Those wishing to help the service continue steadily to function without advertising and restrictions can pay the sponsor's account (175 rubles). As a bonus for supporting the service for the sponsor's accounts opens the possibility to use the API.

Working with the API is done through HTTP POST requests, the response comes in JSON format.
There are four method read, save, delete, get_modes (talking about the modes of syntax highlighting).

Other improvements and ToDo


For the PHP code (when you select the appropriate backlight mode) now automatically checks the syntax. If found error in the lower pane displays its description and the corresponding row is highlighted in red.

Implemented some minor improvements in the editor (CodeMirror), for example, highlight active line and selects the entire row by clicking its number. If you hold down the mouse button, you can select several lines at once.

Service is gradually becoming international: depending on the locale of the browser, you may receive either Russian or English version. The English language is translated only the main interface for working with code, but the translation process is going slowly as improve my little knowledge in English.

In the nearest plans: start button JS (via converting it to datauri after, thank you RubaXa for the idea!), auto-detect programming language based on the Bayes theorem.

code.re
Article based on information from habrahabr.ru

Популярные сообщения из этого блога

Approval of WSUS updates: import, export, copy

The Hilbert curve vs. Z-order

Configuring a C++ project in Eclipse for example SFML application