Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request (or just a general question) about .mo (modelica) syntax highlight support. #3415

Open
PauloMorgs opened this issue Aug 4, 2024 · 1 comment

Comments

@PauloMorgs
Copy link

Hello folks, hope you're doing fine!

I'm kinda new on the linux environment and sometimes I have some really stupid questions, this may be one of them. I need to write physical models in the modelica (.mo) language and I used to use Notepad++ on windows because someone made a custom modelica syntax highlight file for it. I moved to linux and discovered Micro and, man, I really love it. Unfortunately, though, the absence of .mo syntax highlight makes my life really difficult. How one would go about adding a custom syntax highlight file on micro? How is this file structured? Is there a fast way to quickly convert the custom template file I have for Notepad++ to the model Micro uses?

Thanks a lot for your attention,

Commit hash: IDK, sorry.
OS: Arch Linux
Terminal: Kitty, Shell: Fish

@dmaluka
Copy link
Collaborator

dmaluka commented Aug 4, 2024

help colors described how to creates custom syntax highlighting files: https://github.com/zyedidia/micro/blob/master/runtime/help/colors.md#syntax-files

TL;DR you need to be familiar with regular expressions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants