Added a note that you have to disable ‚lexer‘ to use ‚filename‘.

Might be good to rethink the logic here.
This commit is contained in:
Martin Mahner 2014-06-09 20:21:26 +02:00
parent 9768ab9573
commit fc9529572b

View file

@ -88,6 +88,9 @@ This will create a ``python`` highlighted snippet. However in this example::
Since the lexer is set too, we will create a ``php`` highlighted snippet.
.. note:: Since ``lexer`` defaults to ``python`` you have to specifically
unset it when using ``filename``.
.. hint:: You need to adjust the setting ``DPASTE_BASE_URL`` which is used
to generate the full qualified URL in the API response. See :doc:`settings`.