rugk
rugk
FYI prettify can [handle plugins](https://github.com/google/code-prettify#user-content-for-which-languages-does-it-work), so one could also make a plugin for diffs and if it has a good quality we can naturally include it in PrivateBin.
Are files already checked by the JS before they are uploaded, so unnecessary uploads are avoided? If so we could also show an error if a file is too large.
However if we do so, we need to transfer the server limit to the JS side, which defeats the purpose of the second point you mentioned.
Basically the lib should auto-detect the correct language. I think [this is a (complete?) list of all available types](https://github.com/google/code-prettify#user-content-how-do-i-specify-the-language-of-my-code). (AFAIK we do not use any plugins yet) Do you really...
Yeah, if we go the way if including plugins I would sat we have an option for the admin to bundle or not to bundle these files. Maybe a PrivateBin...
Okay, that sounds good, so PRs are very welcome. If diff/patch is also highlighted then you can also mark it as "fixes https://github.com/PrivateBin/PrivateBin/issues/189".
Yes, that's okay.
You use a custom theme? In most cases it's easy: do not use inline CSS, but put everything in extra files. For more details see https://content-security-policy.com/.
Can you try it with a fresh browser profile or all add-ons disabled? Because usually this error is caused just by add-ons. The dark theme is nearly the same as...
That's an interesting matter. The Stackoverflow answer is a bit outdated though, as HTTPS e.g. of course does not imply any "more secret" sites and all browsers take screenshots anyway,...