Comments (7)
Making solid progress on Syntax highlighting, now managed to implement basic syntax highlighting with Rust, plan to add in multiline comment support and fix a few bugs here and there.
from ox.
Whoops accidentality closed, such an amateur move!
from ox.
I've since fixed issues with overflowing text, they now hold their colours when being trimmed down
from ox.
Now working on multiline highlight support (e.g. multiline comments)
from ox.
Good job on setting up your own implementation. I was considering doing the same for a while.
I am using syntect for the initial highlighting in my editor and custom logic for printing, relevant code here.
(You may note that the conversion into crossterm colors is a bit odd. That is because I use a hack to represent ANSI 16-color with the lower bytes of the R if the alpha value is 0 (transparent), as advised by syntects developer. All in all this allows me to support Sublime's syntax and theme definitions, which is pretty neat but has yet to be exploited by me.)
Just if it helps.
from ox.
@sidju Haha you've discovered me talking to myself. I never intended for this to blow up 😆. I looked at syntect but I wasn't comfortable with adding a ton of dependencies to my project as syntect is pretty heavy. I'm currently setting up a different implementation that will render multiline comments properly as the current implementation is a bit buggy here and there. It's going well and hopefully it'll be finished by the end of the week. It's great to see that I'm not the only Rust text editor developer around, i'll be sure to check out your text editor, it looks fantastic!
from ox.
Added in syntax highlighting in latest update, however, it is inefficient in some cases, especially when dealing with a lot of multiline tokens in files. I plan to fix this in a few updates time, for now, I plan to work on adding more crucial features to Ox including multitasking and macros and after that I'll vastly improve efficiency.
from ox.
Related Issues (20)
- Index out of bounds error HOT 6
- AUR formula out of date
- Page Up/ Page Down don't move to the start/end of the document as stated in the README HOT 3
- Why the unnecessary wrapping of Option around some return types? HOT 1
- Why the unnecessary wrapping of Option around some return types? HOT 2
- It can't recognize AltGr+Key (Windows 10, x64) HOT 1
- Please update the brew formulae HOT 1
- GLIBC_2.32 missing HOT 3
- Built-in help inaccessible with non-US keyboard
- Backspace and Delete not working HOT 3
- Outputing editors state for discord rpc HOT 2
- YAML syntax highlighting support HOT 2
- Some questions regarding this project? HOT 7
- To Tab, or not to Tab? HOT 1
- Keep cursor's position
- Windows support? HOT 3
- Path completions/suggestions when opening files HOT 1
- Default theme HOT 2
- [Windows] The system cannot find the path specified. HOT 4
- Homebrew incorrect version
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 ox.