Copyleft Games

Open pastebins in new editor tab

Last year a Google Code-in student implemented support for uploading code pastes sent to chat to a separate URL. Now that we have a web-based code editor, we can do better by opening the pastes directly in the editor for viewing.

First, add a element inside the stanza pointing to the URL for the paste and an appropriate mime-type. Then, when a is received with a mime-type supported by the editor (and no thumbnail is provided) show a default "code" icon. When that icon is clicked, open the provided pastebin URL in a new editor tab setting the highlight mode and other variables for the provided mime-type.

Task tags

  • xmpp
  • javascript
  • chat

Students who completed this task

Shrix

Task type

  • code Code
  • web Design
close

2016