Comments (8)
One line json file :(
The thing that didn't work is "settings":{"foreground":"white","background":"#E05252"}},
to help conversation ; assuming that the color parser just removed the first char w
(thinking it should just be a #
) and tried to parse the hi
characters as a hex number
from babi.
here's what it looks like for me once I fixed white
-- I also did black
at the same time, I don't suspect other named colors will come up but I'll try a bunch of themes later to verify 👍
thanks again for the report!
from babi.
whoa, weird! it looks like ~some coloring is taking but it's greyscaled everything?
from babi.
That was indeed the issue. I formatted the json to a multilne file and replaced "white"
with "#FFFFFF"
. Now there is no error but still no syntax highlighting.
from babi.
hmmm yeah the color parser assumes they're hex codes so that's the first issue -- as for no syntax highlighting after that it probably means the grammar didn't match? can you ls ~/.local/share/babi/textmate_syntax/
there should be a bunch of files in there from running ./bin/download-syntax
from babi.
~/.local/share/babi/textmate_syntax/
looks fine to me all files are there.
I think the problem might be caused by my SSH-client and not the server.
- When using windows'
cmd
to SSH into my remote server the syntax highlighting works perfectly fine with all file types and different themes. - When using
PuTTY
orMobaXterm
the syntax highlighting does not work at all. InPuTTY
256-color mode is activated,MobaXterm
should have this enabled as a default.
from babi.
ah, if you echo $TERM
it probably was xterm
or something without sufficient colors -- it needs to be a >=256 color compatible terminal to display colors. I wonder why putty's 256color mode didn't work though, perhaps the TERM
it enables isn't recognized by curses?
from babi.
echo $TERM
returns xterm-256color
in MobaXterm even though it looks like this.
I think this issue is not related to babi it's some kind of problem with MobaXterms color modes...
Thanks for your help and your great work I am looking forward to using babi as my nr 1 text editor!
from babi.
Related Issues (20)
- Default color scheme doesn't work on macos HOT 3
- jump-by-word (^+right) goes too far when tabs are involved HOT 13
- Display Line Numbers HOT 2
- Syntax highlighting is not working HOT 10
- ^\ during linting causes SIGQUIT to exit the editor
- file containing null byte causes crash HOT 3
- Paste operation for emojis doesn't work in Windows HOT 1
- Word Wrapping HOT 1
- pre-commit runs with the wrong configuration when accessing a file in a different repository
- opening linting panel can cause cursor to be out-of-bounds
- Recursive argument on opening files HOT 1
- saving over a non-utf-8 file causes a crash
- LSP support HOT 2
- babi not using babi_grammars when installed in a venv HOT 3
- babi won't install in ARM64 Debian 11 system HOT 2
- unknown key Error HOT 2
- Add support for delete whole word
- give up on highlighting if lines are too long
- Usage with pipx HOT 1
- lint panel should close when switching files
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 babi.