nerdsupremacist / syntax-highlight-publish-plugin Goto Github PK
View Code? Open in Web Editor NEWPlugin to add syntax highlighting (for multiple languages) to your Publish Site, with the least amount of effort.
License: MIT License
Plugin to add syntax highlighting (for multiple languages) to your Publish Site, with the least amount of effort.
License: MIT License
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!
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 ๐
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.