-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unification of class names across languages #348
Comments
I say go for it. A longer running beta with all the change that have happened since 7.5 is probably best. |
Damn… @sourrust I missed your reply, sorry. However I ultimately decided against it as the job proved to be bigger and more complex than I thought. It just requires a lot of testing through all the languages and styles so I'd rather do it slowly without having a release hanging over. |
… or I'd be happy if some of you guys could pick it up, I'm not selfish :-) |
|
+1 to this! |
It's begun: http://softwaremaniacs.org/blog/2015/05/06/styles-unification-first-results/en/ Everyone feeling brave is welcome to join the work on the new-styles branch! The way I do it is roughly this:
|
Just my 2¢ -- this is a great plan! I initially started working on the Scala mode due to the use of highlight.js in Deckset. However, even after my changes were released, I was disappointed that Scala code still didn't highlight well in many (most?) styles, including the one Deckset seemed to be using. I started doing what you suggested for Scala. Once I have something that seems good, shall I submit a PR against your branch? |
@non yes, please do! I suggest doing it this way:
|
Sounds good. |
@non just ported the rest of the styles with Scala changes. Check! |
Thanks! 🎩 |
I'll push some languages to #911. |
Zephir missed in list and it looks fine. |
Ah, I knew I was gonna miss something :-) Thanks! |
Okay… Upon re-writing the style guide this looked pretty much ready and did burn my hands a lot, so I decided to merge it into master right away. I was thinking about publishing a separate beta demo page from the branch but my prior experience show that nobody ever wants to test beta versions of small libraries :-) I believe we've got enough time before the next release date to iron out possible quirks (see #967). P.S. Woo-hoo! |
Woo-hoo! |
Problem
Principles
Process
There is a a long lived branch where the conversion is slowly happening: https://github.com/isagalaev/highlight.js/tree/new-styles.
It should eliminate all language names from CSS files. Every current class name should also be evaluated and many will be either dropped or change their semantics. At every such change (removal of a language specific rule or redefinition of a class name) we should make sure that all styles look reasonable. This means that we'll definitely loose similarity with other highlighter engines emulated by various styles, but that's an inevitable implication of the whole task.
During the whole conversion process we will have to intelligently port new languages and styles into the new rules. Possibly encouraging contributors to do that :-)
Status
The text was updated successfully, but these errors were encountered: