Comments (15)
What are the file formats of the files you've tried? They need to be among the list of supported formats, which you can find here.
from micro.
Syntax highlighting is definitely on and working in that image. The closing parenthesis not being highlighted is a problem with the syntax highlighting file for javascript, and not micro's highlighting engine. You can view the file here.
from micro.
It should work directly after install. How did you install it? Did running executing (press Ctrl-e
) set syntax on
successfully turn it on?
from micro.
I installed with homebrew. It doesn't seem to recognize the file formats of files I've tried. Set syntax on doesn't help.
from micro.
I've tried python and swift.
from micro.
Hmm. Syntax highlighting should work for those two filetypes (it does for me). I wonder if it might be an issue with colors in your terminal. Do other programs (like vim) successfully use colors?
What OS and terminal are you using?
from micro.
I think it's a problem with detecting the file type because it says "Unknown".
vim syntax highlighting works with both languages I tried.
from micro.
Ok, so it's definitely a problem with micro's filetype detection. These files end in .py
and .swift
right? Do they have other .
characters in the name? If possible, could you tell me the names of the files?
from micro.
I have the same problem. .js
, .php
, .go
, etc. no syntax highlighting, even after Ctrl-e
set syntax on
.
from micro.
Here's an example of .js
on my machine. Syntax seems to be off as well even after running Ctrl-e
set syntax on
. In fact, it seems like it's the default syntax coloring. You can also see faintly the closing parenthesis is gray and not the matching color.
from micro.
Any update on this? A lot has changed since this issue was reported, so it may be fixed now.
from micro.
I noticed the problem in April after installing micro via homebrew.
Today, following your comment, I checked the homebrew version was not updated, so I removed it and installed the osx nightly binary. With this binary the syntax highlighting is working properly.
Micro version: d6307b2
from micro.
Ok thanks for the response. I think the Homebrew formula should be directly linked to the osx nightly binary. The problem is that the binary always has the same name even if the version is different (micro-osx.tar.gz
) so Homebrew thinks it's the same binary and will sometimes used a cached version. There's probably a way to fix this, but I don't know how to use Homebrew well enough to do so.
In any case, it seems like this issue is resolved. Just reopen it if you have the problem again.
from micro.
I think they should add option to set Language manually if micro is unable to detect. something like set lang cpp
from micro.
You can set the filetype
option manually to do this.
from micro.
Related Issues (20)
- Why Ctrl+q kills the terminal ? Should we switch the behavior of Ctrl+q and Ctrl+Shift+q ? HOT 2
- Feature request: option to not insert empty line when wrapping line that exactly hits limit HOT 2
- Macros don't record paste operations HOT 2
- RunTermEmulator function doesn't seem to respect the "wait" flag HOT 1
- Closing SSH connection while Micro runs as root using "sudo su" eats 60%-100% CPU HOT 2
- Mouse release event is lost if the pane becomes inactive HOT 1
- crash when syntax file is not complete? HOT 4
- Keybinding for Redo no working with "Ctrl-Shift-z" HOT 1
- New emojis (2021 Unicode 14.0+) cause rendering issues HOT 1
- keybinding for comments and joinlines don't work HOT 2
- Disable text autocompletions HOT 3
- Weird pasting multiline text behavior HOT 2
- Linter Extend Tutorial HOT 1
- Copy from micro to another program does not work when micro running over ssh from Git Bash HOT 5
- Big file is freeze the micro for a while HOT 2
- Feature request: inline options HOT 4
- > replace powerful or confusing? HOT 2
- Cut command is very slowly on Windows Terminal HOT 4
- Is the BufWindow the same as BufPane? HOT 1
- Nightly builds are not the current master branch 😭 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micro.