Comments (11)
I plan to use Paint in the future to achieve this. In the best case, I want to use the colors defined in the CSS scheme for this, but we could work on an intermediate solution which adds a 256 default style that is suitable for your cases, too.
What do you think about this?
from coderay.
I'd be more than happy to help implement paint (even though I kinda
dislike Janlelis gems because he spams with Post Install which is
rather annoying >.<) but yeah anything that allows the expansion of
colours or even the customistion of simple options for the interim
would do so that we could adjust colours just a tad when working in
certain situations.
from coderay.
In defense of Jan, I know him (we went to the same university) and he's not a spammer ;-) I think he just likes to do things because they are possible.
For me, the current colors work okay, but I also see a lot of room for improvement. However, since you seem to work a lot with CodeRay::Encoders::Terminal, I would be happy to let you choose the colors of the default style :-) Maybe based on your favorite/homegrown VIM highlight config or something.
from coderay.
This feature, together with the multiline-inline-diff branch, would make a great 1.1 release :-) Just thinking.
from coderay.
Well if you want some help implementing this (or even help working on
other things you want to do with Coderay so you can do this yourself)
please do hit me up, I am more than willing to fork and work with you
on these features. Just shoot me a private message and I'll send you
off my gtalk and personal email.
from coderay.
Jordon Bedwell:
Well if you want some help implementing this (or even help working
on other things you want to do with Coderay so you can do this
yourself) please do hit me up, I am more than willing to fork and
work with you on these features. Just shoot me a private message and
I'll send you off my gtalk and personal email.
Wow, thanks man :) I'm in the process of moving to a new flat, so I
won't have time to chat the next days, but I will get back to you.
Never used gtalk before... [email protected] should work :)
- [murphy]
from coderay.
Hi Jordon! Do you still want to work on this feature? :)
from coderay.
Yes I would love to help with this feature. We were just talking about this in #pry the other day. I'll start working on it today and see what I can come up with and present it to you so we can get a robust implementation.
from coderay.
There is a ticket in Redmine that is possibly related to this: Let Terminal encoder use CSS styles
With a link to: terminal256.py in the Pygments repo.
Though I'm not sure that they use CSS styles. Pygments has its own definition of Style.
from coderay.
See also, #29.
from coderay.
256-color support could be the star feature of 1.2, but I think it should not delay 1.1 (which focusses on new scanners).
from coderay.
Related Issues (20)
- Installing coderay hangs
- Could the API for CodeRay.scan(dataset, :python).term also allow for some variant that works on the file extension? (e. g. "rb" for ruby files, "py" or python files etc..)
- ActionView::Template::Error (Symbol or String expected, but NilClass given.)
- Elixir Scanner HOT 1
- Regex with slashes are broken for Javascript
- add 1C Enterprise syntax
- Placeholder $ character in prepared statements (SQL) is marked invalid
- Misaligned line numbers in diff files with `line_numbers: :inline` HOT 1
- Install coderay with permission error in macosx HOT 1
- Invalid rdoc option in gemspec
- CodeRay hangs on multi-code in content
- Add support for CakePHP ctp template
- Support for Kotlin
- Coderay breaks with embedded backticks
- Uninitialized constant Coderay (Redmine 4.1)
- $ method in Groovy code is highlighted as error
- ruby 3.0: test/unit/suite.rb fails due to change in flatten behavior for subclass of Array
- Support for C#
- Support for GraphQL
- License? HOT 1
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 coderay.