This commit is quite big rewrite and individual commits for each feature is
unfortunately not available. This fork introduces quite a lot of new features,
and possibly while doing so, some bugs as well. Nonetheless the features
introduced are listed below.
- Support for multiple database backends (sqlite3, postgresql and mysql are now
supported). Configurations options like dbname/tablename/ports/adresses/etc.
are supported as well.
- Support for dynamically adding lexers (languages) and styles (themes) from
pygments. This means no manual configuration depending on where the
installation is done. There is however a way of adding "prioritized" lexers.
This feature can be nice to use sine pygments now days support hundreds of
languages, some more common than others. Simply add the "display name" for
each lexer you want to prioritize in the file 'assets/prio-lexers' and they
will show up first in the list when the user selects languages.
- Support for changing styles and lexers directly from the webgui on the fly
(no reload of the page, just content update).
- Support for row-highlightning (on/off) and rownumbers (show/hide).
- Support for showing information about when paste expires.
- Support for goo.gl-shortener.
- Extreme debugging.
It's quite big rewrite and indivdual commits are not available since
its so big. Introducing features like,
- Support for multiple database backends and configurations like
dbname/tablename/ports/adresses/etc.
- Support for dynamically adding languages and lexers from pygments,
autodetection of language is also supported.
- Support for changing styles (and languages) on the fly, also row-highlightning
and rownumbers.
- Support for showing information about when paste expires.
- Support for goo.gl-shortener.
- Extreme debugging =)
- Probably added a few bugs in there as well =)
The `name="p"` part is present in index but not the clone page. Without the change I am getting "Empty paste" when submitting any paste from the clone page.