Comments (5)
TOML is a must-have, but I see in #37 you already added it. :)
Otherwise, my 0.02 would be Nix (since it's an increasingly popular package manager and definitely the kind of thing where I ordinarily use cat
to check out a project config). I was also able to discern that the source for the Nix one is here and converted.
Vue also probably has substantial reach as a popular JS framework.
The rest (ignoring Django) are largely "exotic" languages, and so should perhaps be left out by default. I would personally benefit from the Coq one though.
from bat.
Thank you for the feedback!
Unfortunately, we will have to take performance considerations into account when adding lots of new syntax definitions, because (at least right now) the whole SyntaxSet
is loaded into memory and deserialized on every run of bat
.
Every user will still have the possibility to customize/extend his own syntax set, but I'm not sure we should "blindly" add all the syntax files we can get. When having to choose, I would probably go by popularity of the language (or the corresponding Sublime Text package).
Are there any languages from your list that you think should definitely be included?
from bat.
[First of all, sorry if that's not the right place to ask]
So, how/where are defined syntax languages for bat? Just discovered the project and saw that .ini
files didn't have coloration. I tried to look a bit and quickly into this repository and syntect to see where is it and where should it be signaled, I'm still unsure though.
And maybe some could be loaded optionnaly if needed, to extend the number of managed language? (lazy load?)
Especially, this could be potentially be extended with tools later on, like something doing syntaxic coloration for logs for example.
from bat.
Otherwise, my 0.02 would be Nix (since it's an increasingly popular package manager and definitely the kind of thing where I ordinarily use cat to check out a project config). I was also able to discern that the source for the Nix one is here and converted.
I'd be okay with adding Nix, but I cannot find any .sublime-syntax
files in that repo. I would like to avoid having to manually add syntax files somewhere, if possible.
So, how/where are defined syntax languages for bat?
Syntaxes are stored in the bat
executable itself. They are loaded in there from this binary file which is, in turn, created by the assets/create.sh
script.
Just discovered the project and saw that .ini files didn't have coloration. I tried to look a bit and quickly into this repository and syntect to see where is it and where should it be signaled, I'm still unsure though.
You can list all supported languages by calling
bat --list-languages
And maybe some could be loaded optionnaly if needed, to extend the number of managed language? (lazy load?)
Yes, this would be an option. However, loading .sublime-syntax
files from disk and parsing them is quite costly and would significantly affect bat
's speed. Have you seen the "Customization" chapter in the README?
from bat.
I am going to close this ticket. Please feel free to open dedicated tickets for single languages that should be added to bat
, preferably with a link to a repository with a .sublime-syntax
file and some example source code to test it.
from bat.
Related Issues (20)
- Avoid line numbers on select HOT 3
- bat as pager doesnt work on mouse scroll HOT 5
- Support for Podman unit files (Quadlet) HOT 2
- Missing Required Dependency openssl HOT 1
- Provide Statically Compiled Binaries for (aarch64|arm64) Linux
- Using `-S` inside `bat` does not chop long lines HOT 5
- Reading shebang HOT 1
- [solved] zsh cygwin - "The file cannot be accessed by the system (os error 1920)", works fine with bash cygwin HOT 2
- winget doesn't find bat package via winget on Windows 11. HOT 2
- Development with VSCode as IDE HOT 4
- What is the `"st"` file? HOT 9
- FR: use paging for non-operational (eg --help) output HOT 2
- How do I make `bat` use `LF` and `^D` on Windows, similar to `cat` on Linux instead of `CRLF` and `^Z`?
- Documentation Enhancement: Include Information on BAT_CONFIG_DIR Environment Variable
- Couldn't find the man page (or build dir) after install from source HOT 2
- Allow turning on and off styles, relative to current settings HOT 2
- Dependabot partially broken or disabled HOT 1
- Zsh tab complete with -l flag is broken
- Syntax request: typst
- Display Garbled on Windows Terminal HOT 2
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 bat.