Welcome to Codidact Meta!
Codidact Meta is the "town hall" (meta-discussion site) for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.
"Show source" feature would make sense to me
I dimly remember that once, on Wikipedia, there was a button "Show source".
Would be nice to have that here, to learn about what is possible from examples, without opening things for edit and then accidentally modify it.
Would be of special interest for comments, looks like they don't have (and need) all functionality available for questions and answers.
Should be easy to implement using the code already available for "edit" but just blocking "save" and enable "show" for any user, even those without permission to "edit".
2 answers
The solution in RokeJulianLockhart's answer is useful in some specific cases, but is not a general solution so I would still like to see the feature request implemented. There are a few problems here:
- As mentioned in a comment under the answer, MathJax (for those communities that have it enabled) shows in rendered form rather than as the raw text. I regard this as a bug with the edit history. This was raised previously on GitHub.
- For the first entry in the edit history (the original wording of the post) the raw text is shown, as desired. For any later entry the diff is shown (the before and after text, with indications of what was added and/or removed). This gives no way to see just the raw text.
- As shown by the same comment thread, it is not intuitively obvious that this edit history method is possible to someone viewing a post.
Ideally I'd like the see the raw text available from the edit history for any edit (to address 1 and 2) but also available from the post directly (to address 3).

1 comment thread