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

.desktop file semicolon syntax coloring #3365

Open
RealAprilF00lz opened this issue Jun 30, 2024 · 2 comments
Open

.desktop file semicolon syntax coloring #3365

RealAprilF00lz opened this issue Jun 30, 2024 · 2 comments

Comments

@RealAprilF00lz
Copy link

I went into a .desktop file (/usr/share/applications/yelp.desktop) with Micro and saw that everything after the first semicolon in a list separated by semicolons was colored the same as comments. Was the same in other .desktop files in the directory. Doesn't happen in Nano. Is this intentional?

Commit hash: 2.0.13
OS: Ubuntu 24.04 LTS
Terminal: GNOME Terminal
Screenshot from 2024-07-01 07-46-39

@RealAprilF00lz RealAprilF00lz changed the title .desktop file syntax coloring .desktop file semicolon syntax coloring Jun 30, 2024
@Andriamanitra
Copy link
Contributor

The reason for this is that .desktop files currently use the built-in .ini syntax highlighting by default. I've been using a custom syntax file for .desktop files to give them nicer highlighting: https://github.com/Andriamanitra/dotfiles/blob/main/micro/.config/micro/syntax/desktop.yaml

@niten94
Copy link
Contributor

niten94 commented Jul 12, 2024

Manually editing .desktop files is not rare so I think the syntax file can be included in micro instead of highlighting them as ini files. Sections in ini and systemd unit files are highlighted using special color group so it may be better changing like so if included.

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

3 participants