Comments (3)
The leaf-pygment
directory contains a very simple (and out of date) parser for syntax highlighting for the docs when they're generated.
What issues do you have when using one of the Leaf plugins for VSCode? Xcode is far more problematic as there's no plugin and it can cause issues when trying to make it work with HTML as well
from leaf.
The
leaf-pygment
directory contains a very simple (and out of date) parser for syntax highlighting for the docs when they're generated.What issues do you have when using one of the Leaf plugins for VSCode? Xcode is far more problematic as there's no plugin and it can cause issues when trying to make it work with HTML as well
Oh, it turns out that leaf-pygment is used to highlight code syntax, but I found it didn't work. I found that it didn't automatically format HTML pages when I tried to write them with leaf, much to my chagrin, so I was looking for a leaf formatting plugin, but to my surprise VSCode actually has a plugin that provides leaf formatting, called vapor-leaf, but to my dismay the plugin isn't very smart.
from leaf.
leaf-pygment is only for syntax highlighting when being rendered in a client such as a web browser. It's not designed for an IDE. The other VSCode extension is https://marketplace.visualstudio.com/items?itemName=Francisco.html-leaf
For issues with the extensions you'll need to raise an issue on their GH repo as they're community projects rather than Vapor projects
from leaf.
Related Issues (20)
- Leaf Cache should be disabled in dev
- Rationale behind using '#' character? HOT 3
- Add leaf format support in Xcode HOT 1
- [ NOTICE ] Starting Leaf Renderer with caching enabled HOT 4
- Custom header for a single view HOT 2
- Leaf crashes encoding array of optional UUIDs
- Render to String HOT 4
- [Question]How to set button onClick? HOT 2
- Bugs on Xcode 13.3 HOT 1
- Being able to loop over arrays that are the results of function calls HOT 1
- import statement unresolved causing error HOT 2
- [4.2.1] Fails to build with: Value of type '[CodingKey?]' has no member 'compacted' HOT 2
- Memory Leak on View Render with Encodable Struct/Enum HOT 2
- Leaf/LeafEncoder.swift:162: Fatal error after passing DB-Data to a Leaf-View HOT 2
- Consider adding a built-in view context HOT 3
- Xcode syntax highlighting HOT 1
- Consider adding the ability to use a dictionary as a view context HOT 9
- I hope Xcode can better support Leaf.
- New label request
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leaf.