Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Show Source

Started by Muut Archive 10 years ago · 2 replies · 437 views
10 years ago

Is there a built-in way to let users see the source code of a given page? Or do I need to code a plugin for this? I have demos of various plugins and it would be helpful to also let them see the actual live code, without me copying and pasting it into the page itself as a code block.

10 years ago

Does the Learn2 theme has something for this? Or does it just link to the GitHub-page? I haven't looked into it closely, but this wiki-like functionality is not present in any current plugin or mechanism to my knowledge. Handy to have it built-in rather than externally though, for instance through GitHub.

10 years ago

I just submitted a View Source plugin. It will suit my needs. Thanks for the reply, OleVik!

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2289 9 years ago
Archive · by Muut Archive, 9 years ago
2 1501 9 years ago
Archive · by Muut Archive, 9 years ago
2 4754 9 years ago
Archive · by Muut Archive, 9 years ago
1 3570 9 years ago
Archive · by Muut Archive, 9 years ago
3 1627 9 years ago