From fc9529572b360924ca206bfee9add1dbb384971b Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Mon, 9 Jun 2014 20:21:26 +0200 Subject: [PATCH] =?UTF-8?q?Added=20a=20note=20that=20you=20have=20to=20dis?= =?UTF-8?q?able=20=E2=80=9Alexer=E2=80=98=20to=20use=20=E2=80=9Afilename?= =?UTF-8?q?=E2=80=98.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Might be good to rethink the logic here. --- docs/api.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/api.rst b/docs/api.rst index 3d15c99..3e542bf 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -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`.