Giter Site home page Giter Site logo

st2-zonefile's Introduction

Bind Zone File Syntax Highlighting

I'm loving Sublime Text, but the files I edit most are config files, not code.

Here's a basic syntax highlighting package for zone files. Nothing fancy, but I understand how to write a highlighter a little better now.

As well, cause I couldn't find it doc'd anywhere, there's a list of the generic scopes that the Color Scheme's should recognize (pulled it from the Solarized theme as that's what I use)

Installation

Package Control -> Install package -> zone

Sad Project is Sad

I haven't done anything with this project in years. If you like Sublime and Bind, and wish this did more or was better and would like to take over the project, let me know.

st2-zonefile's People

Contributors

cmur2 avatar dnozay avatar sixty4k avatar urda avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

st2-zonefile's Issues

Add zone file templating

Would be nice if this had zone file header templates, shortcuts for A, Cname, txt etc record types.

Update Repository Description

The description of this repo says it only work with Sublime Text 2, but the package info indicates it works with ST3 also.

Sublime Text 2 is not loading this syntax

Sublime Text 2 is not loading this syntax one zone files, or offering it from the command palette. I think it has to do with extensions of the language files, or their layout (I'm doing some internal testing myself).

Semicolons in record values causes Sublime to mark as "Comment"

Given the following record:

_dmarc          TXT "v=DMARC1; p=none; rua=mailto:postmaster@your_domain.com"

st2-zonefile will start marking up the rest of the value after the ; as a comment, even though it's valid to have ; in something like a TXT record value. It will also still mark the rest as a comment even if you try to esacpe \; it.

I'm not very familiar with building complex syntax highlighters for sublime, so I haven't been able to resolve this myself.

As shown below here are some examples:

error

error-escape

Support new .sublime-syntax format.

Relatively easy to convert, need to look at how best to support both st2 and st3, or figure out if it necessary to continue supporting ST2.

Please support end-of-line comments

I have a zone that starts thusly:

; Hetzner isn't shaded the same way as ; date +%s, it really ought to be.

Alas, I've looked around at the syntax, but this is far from my speciality, sorry.

Any plans to update the bundle for ST3?

After installing in Sublime Text 3, it is not possible to select "Bind Zone File" or anything similar as the template for syntax highlighting. It is just not listed in the syntax list.

Test in ST3

I don't imagine there's any difference as this is a pretty simple highlighter, but probably makes sense to validate that.

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.