Users can add code blocks to their post with syntax highlighting. See: Select the programming language used in code blocks
The available programming languages are configured in the
hightlighted_languages site setting:
You can use this site setting to add additional languages needed by your users, or remove languages that are not needed.