ERROR: Unknown directive type "highlightlang".

15 views
Skip to first unread message

Adrien Laveau

unread,
Apr 4, 2024, 5:20:10 AMApr 4
to sphinx-users
Hello sphinx-users,

The documentation of a software I work on is using sphinx running on python 2.7.

We are planning to switch to python 3.11. But by doing so I am running in the following error message : ERROR: Unknown directive type "highlightlang".

Checking the change logs of sphinx it seems that highlightlang was deprecated in Release 1.8.0 (released Sep 13, 2018)

What other directive could replace it ?

Thank you.

Adrien Laveau

unread,
Apr 17, 2024, 3:17:07 AMApr 17
to sphinx-users
Hello everyone,

Looking better at the documentation, it is advised to replace highlightlang by highlight.

This works fine.
Reply all
Reply to author
Forward
0 new messages