Pastebin
Summary: This is Paste. It needs some work, but epriestley recommended that I just commit something that works, and expand on that later. Specifically, it lacks the ability to view a raw paste right now, and to turn off line numbers, making it hard to copy/paste from for now. It works for showing other people code, however. Test Plan: Pasted stuff, and was able to view it, and see it in the list on /paste/. Put a file extension in the title, and saw that syntax highlighting worked as expected. Reviewers: epriestley CC: Differential Revision: 424
This commit is contained in:
@@ -305,6 +305,13 @@ class AphrontDefaultApplicationConfiguration
|
||||
|
||||
'/status/$' => 'PhabricatorStatusController',
|
||||
|
||||
'/paste/' => array(
|
||||
'$' => 'PhabricatorPasteHomeController',
|
||||
'create/' => 'PhabricatorPasteCreateController',
|
||||
),
|
||||
|
||||
'/P(?P<id>\d+)$' => 'PhabricatorPasteViewController',
|
||||
|
||||
'/help/' => array(
|
||||
'keyboardshortcut/$' => 'PhabricatorHelpKeyboardShortcutController',
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user