diff --git a/Teknik/Areas/API/Controllers/APIv1Controller.cs b/Teknik/Areas/API/Controllers/APIv1Controller.cs index 5d42736..2542139 100644 --- a/Teknik/Areas/API/Controllers/APIv1Controller.cs +++ b/Teknik/Areas/API/Controllers/APIv1Controller.cs @@ -162,7 +162,7 @@ namespace Teknik.Areas.API.Controllers [HttpPost] [AllowAnonymous] [TrackPageView] - public ActionResult Paste(string code, string title = "", string syntax = "auto", string expireUnit = "never", int expireLength = 1, string password = "", bool hide = false, bool doNotTrack = false) + public ActionResult Paste(string code, string title = "", string syntax = "text", string expireUnit = "never", int expireLength = 1, string password = "", bool hide = false, bool doNotTrack = false) { try { diff --git a/Teknik/Areas/Help/Views/Help/API/v1/Paste.cshtml b/Teknik/Areas/Help/Views/Help/API/v1/Paste.cshtml index 13315a8..79cb183 100644 --- a/Teknik/Areas/Help/Views/Help/API/v1/Paste.cshtml +++ b/Teknik/Areas/Help/Views/Help/API/v1/Paste.cshtml @@ -1,6 +1,7 @@ @model Teknik.Areas.Help.ViewModels.HelpViewModel @using Teknik.Helpers +@using Teknik.Pygments @Styles.Render("~/Content/help"); @@ -59,16 +60,16 @@ string - auto-detect + text The syntax of the pasted code.
This can be one of the following: @@ -146,7 +147,7 @@

Response

-
{"result":{"id":id, "url":"url", "title":"title", "syntax":"auto-detect", "expiration":"datetime", "password":"password"}}
+
{"result":{"id":id, "url":"url", "title":"title", "syntax":"text", "expiration":"datetime", "password":"password"}}
diff --git a/Teknik/Areas/Paste/PasteHelper.cs b/Teknik/Areas/Paste/PasteHelper.cs index 2f6dde4..ccd15fb 100644 --- a/Teknik/Areas/Paste/PasteHelper.cs +++ b/Teknik/Areas/Paste/PasteHelper.cs @@ -11,7 +11,7 @@ namespace Teknik.Areas.Paste { public static class PasteHelper { - public static Models.Paste CreatePaste(string content, string title = "", string syntax = "auto-detect", string expireUnit = "never", int expireLength = 1, string password = "", bool hide = false) + public static Models.Paste CreatePaste(string content, string title = "", string syntax = "text", string expireUnit = "never", int expireLength = 1, string password = "", bool hide = false) { TeknikEntities db = new TeknikEntities(); Config config = Config.Load();