diff --git a/package.json b/package.json index 7599fdc..55db6ac 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,6 @@ "dependencies": { "express": "^4.16.2", "express-handlebars": "^3.0.0", - "highlight": "^0.2.4", "highlight.js": "^9.12.0" } } diff --git a/src/routes/r/about.mjs b/src/routes/r/about.mjs index c4fea08..6fffd42 100644 --- a/src/routes/r/about.mjs +++ b/src/routes/r/about.mjs @@ -4,5 +4,8 @@ const router = express.Router(); router.get("/", (req, res) => { res.render("about"); }); +router.get("/howto", (req, res) => { + res.render("howto"); +}); export default router; \ No newline at end of file diff --git a/src/routes/r/view.mjs b/src/routes/r/view.mjs index f7cf078..71edd82 100644 --- a/src/routes/r/view.mjs +++ b/src/routes/r/view.mjs @@ -2,7 +2,6 @@ import express from "express"; const router = express.Router(); import highlight from "highlight.js"; -console.log(highlight.highlightAuto("")); router.get("/", (req, res) => { const data = { diff --git a/views/howto.handlebars b/views/howto.handlebars new file mode 100644 index 0000000..13930dc --- /dev/null +++ b/views/howto.handlebars @@ -0,0 +1,27 @@ +

How to use fpaste.cc

+

To create a paste simply go to the start page and enter your paste, add an optional description (see below) and select your highlighting language of choice.

+

The description has a special markup language. You can:

+ +

To customize the presentation of your paste you can use the URL to change syntax highlighting or the HTML layout:

+ +

Filtering pastes is done either by clicking IDs, tags or language links directly, or by using the following rules. Note that you can combine these rules, such that all of them have to be met for a paste to be listed.

+ +

On the main website all pages are accessible via one letter keywords:

+ \ No newline at end of file