HaxeFoundation / haxelib

The Haxe library manager
https://lib.haxe.org/
MIT License
172 stars 78 forks source link

Haxe highlighting used for everything on files page #322

Closed Gama11 closed 6 years ago

Gama11 commented 8 years ago

It seems like every page on /files uses haxe highlighting:

<code class="prettyprint haxe highlighted">

While this is only slightly noticable for .json because urls are rendered as comments...:

http://lib.haxe.org/p/flixel/4.0.1/files/haxelib.json

...xml files are hardly recognizable as such anymore:

http://lib.haxe.org/p/flixel/4.0.1/files/include.xml

nadako commented 8 years ago

The json case is funny because json is valid haxe syntax.

ibilon commented 8 years ago

Wouldn't the url example also happen on haxe code? If that's the code from haxe.org there's only haxe, and a basic highlight for it.

nadako commented 8 years ago

Can't we just use https://highlightjs.org/ like every other kid?

ibilon commented 8 years ago

I can't find haxe support in it, having better (any) support for other languages sure, but it'd be sad if we didn't have haxe :)

nadako commented 8 years ago

It has haxe support. I use it in my blog: http://nadako.github.io/rants/posts/2016-03-05_haxe-import-hx.html

markknol commented 6 years ago

The highlighting is nicer since new layout update (probably not gama11-compliantâ„¢). jsons dont get highlighted anymore.

It uses https://lib.haxe.org/p/html-haxe-code-highlighter/ atm.