Giter VIP home page Giter VIP logo

set-syntax's Introduction

Set Syntax

Build Status Dependency Status apm apm

The Set Syntax Atom package creates easy Command Palette entries for setting the syntax of the current file.

It is designed to make the transition to Atom easier for people migrating from Sublime Text by mimicking the method by which one changes the syntax of the current buffer in that editor.

Usage

Simply use the way you're used to in Sublime Text! Bring up the Command Palette and use the fuzzy search to enter the syntax you want. See the Atom Flight Manual for instructions on how to show the Command Palette on your platform.

Set Syntax demonstration

Key Bindings

There are no key bindings set by default, though you could set keys for specific languages that you use often. For example:

'atom-text-editor':
  'alt-cmd-Z': 'set-syntax:ruby'

License

MIT

set-syntax's People

Contributors

brookedot avatar idleberg avatar lee-dohm avatar salgnt avatar ultrabenosaurus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

set-syntax's Issues

Atom.Object.defineProperty.get is deprecated.

atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use atom.views.getView(atom.workspace),
which returns an HTMLElement.

Atom.Object.defineProperty.get (/Applications/Atom.app/Contents/Resources/app/src/atom.js:53:11)
createCommand (/Users/lichengwu/.atom/packages/set-syntax/lib/main.coffee:16:9)

Key binding is not working

Is command set-syntax:language correct?

I'm trying to bind set-syntax:ruby or set-syntax:json but nothing happens.
As you can see in image below, command was executed but language still Plain Text
image

Failed to activate the set-syntax package

Error: Arguments to CompositeDisposable.add must have a .dispose() method

Trace:
TypeError: Arguments to CompositeDisposable.add must have a .dispose() method
at assertDisposable (C:\Users\master\AppData\Local\atom\app-1.11.2\resources\app.asar\node_modules\event-kit\lib\composite-disposable.js:70:13)
at CompositeDisposable.module.exports.CompositeDisposable.add (C:\Users\master\AppData\Local\atom\app-1.11.2\resources\app.asar\node_modules\event-kit\lib\composite-disposable.js:43:11)
at file:///C:/Users/master/.atom/packages/set-syntax/lib/main.coffee:11:20
at Array.map (native)
at Object.module.exports.activate (file:///C:/Users/master/.atom/packages/set-syntax/lib/main.coffee:10:33)
at Package.module.exports.Package.activateNow (C:\Users\master\AppData\Local\atom\app-1.11.2\resources\app.asar\src\package.js:183:20)
at C:\Users\master\AppData\Local\atom\app-1.11.2\resources\app.asar\src\package.js:156:32
at Package.module.exports.Package.measure (C:\Users\master\AppData\Local\atom\app-1.11.2\resources\app.asar\src\package.js:92:15)
at C:\Users\master\AppData\Local\atom\app-1.11.2\resources\app.asar\src\package.js:149:26
at Package.module.exports.Package.activate (C:\Users\master\AppData\Local\atom\app-1.11.2\resources\app.asar\src\package.js:146:34)
at PackageManager.module.exports.PackageManager.activatePackage (C:\Users\master\AppData\Local\atom\app-1.11.2\resources\app.asar\src\package-manager.js:538:21)
at C:\Users\master\AppData\Local\atom\app-1.11.2\resources\app.asar\node_modules\settings-view\lib\package-manager.js:397:31
at process._tickCallback (internal/process/next_tick.js:103:7)

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.