highlightjs / highlightjs-structured-text Goto Github PK
View Code? Open in Web Editor NEWHighlightjs Structured Text language support IEC 61131-3
License: BSD 3-Clause "New" or "Revised" License
Highlightjs Structured Text language support IEC 61131-3
License: BSD 3-Clause "New" or "Revised" License
Definitely a noob here...
How should I go about "installing" this in Highlight.js? I'd like to use it with marp for some presentations I'd like to automate putting together. I've found that there's a highlight.js
folder underneath my marp installation. Can I just throw some of these files in there and kick a few things to get highlight.js to recognize the new syntax?
Thanks!!!
highligh.js
is already included in the docusaurus. How do we import highlightjs-structured-text
use for st
.
Thanks.
I realized that there was no existing support for the standard IEC 61131-3 conversion functions (BYTE_TO_BOOL, etc) so I crafted some RegEx matches that add this support. I'll open a pull request (#13) for this, but for clarity, here's the main portion that I'm suggesting:
I would love to hear if you have any other thoughts regarding this suggestion, or if you feel that anything should be changed.
With this new portion, syntax highlighting appears for these conversion functions similar to what might be found below:
Thank you!
@marcoscaceres please look at this topic.
microsoft/vscode-markdown-tm-grammar#79
They say that VS Code uses HighlightJS to Highlight markdown previews. Why it does not highlight this language? Can you ship next HLJS version with support of this language out of the box.
The whole purpose of my integration was that with time as developers update HLJS version in their applications on different blogs platforms, highlight of ST will appear. But it is for years already and situation does not change. Please tell me what to do to make it part of HLJS install through NPM or Bower.
Thank you for response first of all. But i am completely lost how to add my own language. In extra/3RD_PARTY_QUICK_START.md
file is a very controversial and convoluted information.
extra
folderextra/iecst
in my case but later when run build it says it will generate extra/highlightjs-iecst/dist/iecst.min.js
file. So, it is a different folder name.src/languages
but why then create separate repository?Hi there,
correct me if I'm wrong, but it seems to me that this language can only be installed when using HighlightJS with NodeJS :-( Is there some specific reason for this?
I looked into this a bit more and here is a Gist containing a version that works with the vanilla JS version of HighlightJS: https://gist.github.com/philippn/0c45ef5eab20d90dffd9612f6d295c1d
Maybe you will find this useful or consider this for integration.
Thanks and kind regards,
Philipp
Contribute to the thought process for 3rd party language packaging if you'd like
As a maintainer of a Highlight.js language grammar you might be interested in the discussion of an official packaging format. I just created an issue to track the discussion and I've been working on this along with the new build system.
Sorry for the spam, but I couldn't think of an easier way to ping the people who might be most interested in weighing in on the subject. Feel free to simply close this issue or leave it open (whatever works best for you!).
Hi there,
first of all, thanks for your great work. I have seen, that you have updated the dependencies two months ago in order to use the new NPM highlight.js instead of the deprecated one.
However, the release currently being distributed via NPM still yields the old dependency and thus brings up this warning:
npm WARN deprecated [email protected]: Use the 'highlight.js' package instead https://npm.im/highlight.js
Could you please release a new version to fix this?
Thanks in advance and kind regards,
Philipp
@joshgoebel I was first who implemented your new model for files, and I never got into the list of languages. Even to this day anyone who install new version of HLJS, do not have this language there. On a demo site it is also not there.
It is so hard to promote highlights for not as much popular languages and I first added my language into main HLJS library to list of all other languages, but you asked me to create separate repo, and I do not have any advantages because of that. It looks like I am punished for doing what you want.
And I have already raised this subject.
What can we do that when people install or update HLJS my ST language is there?
βοΈ Important announcement: Greenkeeper will be saying goodbye π and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io
10.0.0
to 10.0.1
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
highlight.js is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
Fixes: sublanguage with no rule matches causes text to disappear in final output. (#2506).
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Hi there!
I can't find any VSCode markdown extension which is able to export this syntax highlighting to pdf, do you have any tips?
I get the highlighting in the code editor, and with marp I get one slide, but I need it for a regular pdf document and there I always only get all black text.
@marcoscaceres Could you please edit repository settings and turn off Wiki and Projects?
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.