Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Show Source

Started by Muut Archive 10 years ago · 2 replies · 379 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 1355 9 years ago
Archive · by Muut Archive, 9 years ago
2 935 9 years ago
Archive · by Muut Archive, 9 years ago
2 4065 9 years ago
Archive · by Muut Archive, 9 years ago
1 2953 9 years ago
Archive · by Muut Archive, 9 years ago
3 1119 9 years ago