Browse Source

License and readme

Piotr Czajkowski 3 years ago
parent
commit
b963b7a9bf
2 changed files with 22 additions and 0 deletions
  1. 11 0
      LICENSE.md
  2. 11 0
      README.md

+ 11 - 0
LICENSE.md

@@ -0,0 +1,11 @@
+Copyright 2021- Piotr Czajkowski
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

+ 11 - 0
README.md

@@ -0,0 +1,11 @@
+# ficheSyntaxHighlight
+
+I'm using the great [solusipse/fiche](https://github.com/solusipse/fiche). It generates text files, but I want syntax highlighting and line numbers. So I've created this server.
+
+It's using [alecthomas/chroma](https://github.com/alecthomas/chroma) for generating HTML files with syntax highlighting, but language detection is my own creation as chroma's one doesn't detect what I want.
+
+By default you'll be served with HTML version of your paste, if you want TXT then simply add /t to the link, like `http://localhost/xxxx/t`.
+
+fiche's author provides his own [solution](https://github.com/solusipse/fiche/tree/master/extras/lines). If you're not performance freak (it generates HTML with every request, not once like mine, plus it's Python) and are not afraid of Python and Flask on your server it could be better solution for you.
+
+This project was created mainly for fun, so don't expect much;)