• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

file-mode

Looks for a syntax mode of the form -*- mode: <NAME> -*- and sets the syntax highlighting to NAME.
dblezek
1.0.1 366
3
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

file-mode package

Atom.io package to set syntax mode based on comment string (-- mode: MODE --).

Why?

Automatically sets the syntax highlighting mode when Atom can't properly guess it.

How?

Somewhere in the file, create a comment of this form:

# -*- mode: NAME -*-

When the file is opened, the syntax will be set to NAME, e.g. CoffeeScript, bash, etc... The matching is exact and case sensitive, caveat emptor.

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by