Giter VIP home page Giter VIP logo

language-tplpre's Introduction

BMC tpl or tplpre language support in Atom

UPDATE 2023

I've moved all work to a separate repo. There are all updates and initial YAML files in dev folder to be used whenever you need (any tmLang supported IDE) https://github.com/trianglesis/bmc-tpl

Older info.

Adds syntax highlighting and snippets for tpl in Atom.

Originally re-made from the Sublmime text 3 bundle.

Build Logic for this package is not included, you can find it in separate repo

Installation:

  • Copy 'language-tplpre' to: C:\Users\USER\.atom\packages\
  • Move ".atom-build.yml" to your project root folder.

Better installation:

Go to settings -> Install -> Search "language-tplpre"

Use:

Set syntax: Ctrl+Shift+L -> type 'tplpre'

set syntax

Syntax highlighting:

Most of constructions are also checking on integrity, so if some code will be written on wrong place, highlighting can be broken.

Example:

Pattern from Community Edition:

  • blocks

Documentation block and tasks highlighted:

  • docs

Triggers:

  • regexes

Regex expressions: (uses python regex grammar from "language-python")

  • more_regexes

Syntax broken (highlighting will show it)

  • syntax_broken

Autocomplete and Doc links:

For common code blocks and usual constructions autocompletion is available. It also provide links to reffering documentaion for each function or block on official BMC Doc portal.

Pattern draft example:

  • pattern_blocks

Code constructions usually used:

  • common_code

Link to BMC official docs:

  • docs

Extra developers helping code:

  • dev_examples

Automation, syntax check, upload pattern, etc:

You should download extra module for TPL Automation from repo below and attach to build system for Atom.

You can obtain build system in:

TPL Automation: BMC_TPL_IDE you can run most development routines automatically. Atom command templates you can found in Command Palette (Ctrl+Shift+P)

File in project's root - ".atom-build.yml" is example for TPL Automation build, place it in your project's root folder, where tpl\tplpre files are stored.

Build

Buildresult

Contributions are greatly appreciated. Please fork this repository and open a pull request to add snippets, make grammar tweaks, etc.

Additional functionality will be added soon in both versions for Sublime Text and Atom.

Fell free to contact me via [email protected]

Last validation: 2017-08-17

language-tplpre's People

Contributors

trianglesis avatar

Stargazers

 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.