Giter Club home page Giter Club logo

syntax-highlight-publish-plugin's People

Contributors

nerdsupremacist avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

syntax-highlight-publish-plugin's Issues

[Question] Where to place the .tmlanguage file?

I'm trying to add a new language using the syntax below - I have the .tmLanguage file.
But I cannot for the life of me figure out how to add the file to the project for the plugin to be able to find it.
Should the path be a complete path, relative to the project or something completely different?

extension Grammar {
static let kotlin = try! Grammar(textMateFile: URL(fileURLWithPath: "/path/to/Kotlin.tmLanguage"))
}

Thanks for this plugin anyways! Seems to great!

Example for using a TextMate Language file to NSAttributedString with Splash?

Hey there!

I'm trying to use your collection of wonderful packages to create a highlighted NSAttributedString with Splash from any TextMate language file. If I understand this package correctly it seems like this should already be possible, however I can't figure out how ๐Ÿ˜„

Do you have an example snippet for how I would do this?

All the best ๐Ÿ‘‹

Standalone syntax highlighter?

This seems like a very cool library, the ability to use all these different kinds of grammars, especially from TextMate, is great. However, it's very much tied to Publish. Have you thought of making a version of this library that works independently from Publish, instead offering a function that takes in a HTML string and returns a highlighted HTML string? syntax-highlight-publish-plugin could then depend on that plugin I imagine?

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.