Ideas #1
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Use git to store the changes
-Allows for being 'stateless' if no authentication is needed
https://github.com/czproject/git-php
Can make a commit for every change
-If single repo, add filename to commit message so can find all changes for specific file
Allow for changing branches to keep better track?
-Disadvantage is that it can't be done on a per-file basis
If per file repository is created, easier to keep track of changes and makes multiple branches a lot easier. Can also keep metadata in repository. If you want to push all the repositories it can become very cluttered
Raw rendering of HTML pages (return correct filetype), also allows for replacing certain special tokens with (full) raw url to other snips.
Can use highlightjs to render code nicely (based on extension?):
https://highlightjs.org/
Comment system? This can perhaps be done as metadata as well, keep comments in separate file can be nice if each file/project is separate repository.
Little inspiration: https://github.com/alcohol/pastebin-php/blob/main/src/Controller/ReadController.php