Highlighter is a Blender add-on by pioverfour that turns text into syntax-highlighted objects for the 3D viewport. It relies almost entirely on the Pygments library for syntax highlighting.

Turn code into highlighted scene text

In Blender’s Text Editor, choose Edit > Text to 3D Object > Syntax-Highlighted, then select a style. Highlighter attempts to detect the syntax automatically. If detection misses, select the appropriate syntax yourself before confirming to create the object.

Reapply highlighting and set default fonts

To highlight an existing text object again, search for Syntax Highlight Object in Blender’s F3 menu, or choose Apply Syntax Highlighting from the Text menu while in Edit mode. You can set default fonts in the add-on preferences instead of choosing fonts for each object.

Compatibility and license

The Blender Extensions listing specifies Blender 4.2 LTS and newer, and lists the add-on under the GNU General Public License v3.0 or later. It requires no special permissions. Check the Highlighter listing for the current version and download.