Giter Site home page Giter Site logo

Comments (15)

zyedidia avatar zyedidia commented on May 22, 2024 1

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.

zyedidia avatar zyedidia commented on May 22, 2024 1

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.

zyedidia avatar zyedidia commented on May 22, 2024

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.

amichail avatar amichail commented on May 22, 2024

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.

amichail avatar amichail commented on May 22, 2024

I've tried python and swift.

from micro.

zyedidia avatar zyedidia commented on May 22, 2024

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.

amichail avatar amichail commented on May 22, 2024

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.

zyedidia avatar zyedidia commented on May 22, 2024

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.

dfreire avatar dfreire commented on May 22, 2024

I have the same problem. .js, .php, .go, etc. no syntax highlighting, even after Ctrl-e set syntax on.

from micro.

colinrioux avatar colinrioux commented on May 22, 2024

screen shot 2016-04-20 at 8 53 01 am

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.

zyedidia avatar zyedidia commented on May 22, 2024

Any update on this? A lot has changed since this issue was reported, so it may be fixed now.

from micro.

dfreire avatar dfreire commented on May 22, 2024

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.

zyedidia avatar zyedidia commented on May 22, 2024

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.

frak0d avatar frak0d commented on May 22, 2024

I think they should add option to set Language manually if micro is unable to detect. something like set lang cpp

from micro.

zyedidia avatar zyedidia commented on May 22, 2024

You can set the filetype option manually to do this.

from micro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.