I need syntax highlighting for some not-so-popular programming languages. Is there any way to add them?

Obsidian uses PrismJS for its code highlighting and you can see a list of supported languages here
https://prismjs.com/#supported-languages
Both languages you are after are on that list and do work in obsidian.

If a language is not on the list of supported languages, you can open a feature request there.