QDoc: Add support for overriding languages of quoted files


The \snippet, \quotefile and \quotefromfile commands rely on the file
name passed to them to determine the code marker to use for marking up
text. It can be useful to override this, particularly when QDoc does
not support the language being quoted.

This change brings these commands in line with the \code command,
accepting an optional language argument on the same line as the command
itself. Language information is retained for use by generators and other
tools in the production process.

Pick-to: 6.11 6.11.0
Fixes: QTBUG-106488
Change-Id: Ic55be0bf3c3ffbee58dd6da7127eb0ad5fe97dc7
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commit47d4231c62b80c7c23d01df35909dfed0232374e
parentccc018b81b46b3f48a24d1b9d57636a39de0b900
authorDavid Boddie <david.boddie@qt.io>
committerDavid Boddie <david.boddie@qt.io>
commit timeMon, 2 Mar 2026 13:14:40 +0100