Syntax highlighting for Blender text objects
Go to file
2024-11-11 16:42:25 +01:00
docs README: Add images and description of object operator 2024-11-11 16:41:20 +01:00
wheels Initial commit 2024-11-10 16:36:15 +01:00
__init__.py Store settings in obj, restore when re-highlighting 2024-11-11 15:38:51 +01:00
.gitignore .gitignore: Add save .blends 2024-11-11 16:42:25 +01:00
blender_manifest.toml Initial commit 2024-11-10 16:36:15 +01:00
LICENSE.md Initial commit 2024-11-10 16:36:15 +01:00
README.md README: Add images and description of object operator 2024-11-11 16:41:20 +01:00

Highlighter

Syntax highlighting for Blender text objects.

Usage

In the text editor, go to the Edit menu > Text to 3D Object > Syntax-Highlighted. Select the style you want. The add-on tries to detect the syntax automatically, but if it fails, select the proper one. Confirm, and the text will appear in the viewport!

Location of the menu in the UI.
Location of the menu in the UI.

Available parameters.
Available parameters.

Result.
Result.

Once a text object is created, you can highlight it again by searching for Syntax Highlight Object in the F3 menu, or in Edit mode, Text menu > Apply Syntax Highlighting.

Preferences

Instead of selecting fonts for each object, you can set default ones in the preferences of the add-on.

Acknowledgement

Highlighter relies almost entirely on the Pygments library to do the syntax highlighting. Thanks for that amazing lib!

Author

This extension is developed by Damien Picard.

License

This add-on is licensed under the GPL license; either version 3 of the License, or (at your option) any later version.