Git Product home page Git Product logo

ada-sublime-syntax's Introduction

About 'Ada.sublime-syntax'

Ada language sublime syntax highlighting support file. Created for use with command line tool called bat created by @sharkdp

bat : A cat(1) clone with syntax highlighting and Git integration.

Purpose

To provide an Ada language syntax highlighting support file, that works with bat.

Update: 20 Feb 2021

The request to include Ada language syntax highlighting support within the bat application is being tracked via bat Issues #1300. Once included, this will negate the need for the steps below. Once a Pull Request (PR) is submitted and accepted, I will update this page again with the version it is included in. In the meantime the process below still works and is used on a daily basis on both Windows and Linux version of bat.

Installation and Usage

Only the single file: Ada.sublime-syntax is required!

Download

Download either by:

a) cloning this whole repo and the copy the file as per the instruction below: git clone https://github.com/wiremoons/ada-sublime-syntax.git or

b) just download the single file directly to your computer with a tool such as curl or wget : curl -OL https://raw.githubusercontent.com/wiremoons/ada-sublime-syntax/main/ada-sublime-syntax/Ada.sublime-syntax

Install

Once you have a copy of the Ada.sublime-syntax file, use it with bat as follows:

Ubuntu (Linux)

  1. Save a copy of the Ada.sublime-syntax from this repo into the following directory: ~/.config/bat/syntaxes/
  2. Run the following bat command: bat cache --build
  3. Check Ada is now included in the list when running: bat --list-languages

Now when viewing an Ada language source code file, syntax highlighting should be supported.

Windows 10

  1. With bat.exe installed run the command: bat --config-dir. This location is the bat.exe config directory location.
  2. Change to the bat.exe config directory (as above) and make a new directory called: syntaxes.
  3. Save a copy of the Ada.sublime-syntax from this repo into the newly created syntaxes directory.
  4. Run the following bat.exe command: bat.exe cache --build
  5. Check Ada is now included in the list when running: bat --list-languages

Just for clarity - on my Windows 10 computer with a username of simon the full path of the required syntaxes directory is: C:\Users\simon\AppData\Roaming\bat\syntaxes\ and this is where the a copy of the Ada.sublime-syntax file from this repo should be saved. The username (ie simon) will be diffrent of course for your computer! Then run the command: bat cache --build to complete the process.

Now when viewing an Ada language source code file, syntax highlighting should be supported.

More complete instructions on using and adding a new syntax files with bat are included in the Bat Readme document.

Acknowledgements

The Ada.sublime-syntaxfile was possible due to the following other syntax files:

  • Original Ada.tmLanguage file: @mulander on GitHub;
  • The ada.tmbundle file @textmate on GitHub.

The above Ada.tmLanguage file was used as a basis for the conversion to the Ada.sublime-syntax file for use with bat.

License

The files are provided under the MIT open source license. A copy of the MIT license file is here.

The files in the repository are licensed under the MIT License that also respects the original licences used on the two repositories this syntax file was derived from. The original license provided on both the @textmate and @mulander repos was:

Permission to copy, use, modify, sell and distribute this
software is granted. This software is provided "as is" without
express or implied warranty, and with no claim as to its
suitability for any purpose.

ada-sublime-syntax's People

Contributors

wiremoons avatar

Watchers

 avatar  avatar  avatar

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.