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)
- JumpToMatchingBrace inconsistent with adjacent unpaired braces e.g. )[ or }( or )( HOT 12
- disable error HOT 2
- Confusion over missing bindings
- Differing copy-paste mechanics between tmux and non-tmux HOT 2
- Calling clipboard.Write in lua crashes micro HOT 6
- 2.0.13 micro-2.0.13-linux-arm.tar.gz may have been tampered with HOT 12
- Micro panics when cd-ing to root
- How to toggle softwrap + wordwrap in editor, and how to make it a default setting? HOT 2
- Colors in Color Schems appear wrong. HOT 2
- DeleteLine does not delete selected lines HOT 8
- Micro reindents settings.json files with spaces on open HOT 1
- Nightly builds are not the current master branch 😭 HOT 3
- Binding Backspace related keys do not work on Windows HOT 1
- Autosave locally HOT 22
- Scrolling does not always go down with the cursor HOT 2
- Cannot click to move cursor to first character of document HOT 6
- Panic with `open folder\` on Windows HOT 1
- Empty line for no reason HOT 3
- [Feature request] Proposal of functionality improvement HOT 7
- [Bug] Overwriting of configuration file HOT 1
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.