Skip to content
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

Feat(hightlight): use new highlighter #767

Merged
merged 2 commits into from May 19, 2016
Merged

Feat(hightlight): use new highlighter #767

merged 2 commits into from May 19, 2016

Conversation

marcoscaceres
Copy link
Member

@marcoscaceres marcoscaceres commented May 17, 2016

depends on #766, so won't pass until that one is merged.

I've simplified highlighting a bit more. As we have been warning people about deprecated classes since 2013, I've removed that warning code related to "sh_css sh_html sh_javascript sh_javascript_dom sh_xml". Highlighting now happens by default, instead of requiring eds. to put "highlight" everywhere.

Disabling highlight can be done with "nohighlight".

@marcoscaceres
Copy link
Member Author

Review please 🍨

@marcoscaceres
Copy link
Member Author

rebased.

@marcoscaceres marcoscaceres force-pushed the highlightjs branch 2 times, most recently from 61f8cfe to 43e4a22 Compare May 19, 2016 06:33
@marcoscaceres
Copy link
Member Author

highlighting now happens after linking, so not to affect linking.

@halindrome
Copy link
Contributor

This seems fine. I am concerned, as usual, about backward compatibility. In this case the change of requiring nohighlight means documents that formerly would NOT have had highlighting on some examples will now suddenly have it. This may come as a surprise to their editors.

@marcoscaceres
Copy link
Member Author

On 19 May 2016, at 10:37 PM, Shane McCarron notifications@github.com wrote:

This seems fine. I am concerned, as usual, about backward compatibility. In this case the change of requiring nohighlight means documents that formerly would NOT have had highlighting on some examples will now suddenly have it. This may come as a surprise to their editors.

🦄☄✨I like to imagine them being delighted by whimsy✨☄🦄

But that's a good point. I'll email spec-prod.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub

@marcoscaceres
Copy link
Member Author

Email sent!

@marcoscaceres marcoscaceres merged commit 37e5a66 into develop May 19, 2016
@marcoscaceres marcoscaceres deleted the highlightjs branch May 19, 2016 13:38
marcoscaceres added a commit that referenced this pull request May 20, 2016
* 'develop' of github.com:w3c/respec:
  Feat(hightlight): use new highlighter (#767)
marcoscaceres added a commit that referenced this pull request May 23, 2016
* develop:
  v3.2.124
  Fix(ui): close ui when doc is clicked (closes #772)
  Fix(base-runner): improve error reporting
  Fix(markdown): use Array.from instead of for/of loop
  Fix(headers-spec): should query doc, not document
  Fix(markdown-spec): should query doc, not document
  Feat(markdown): disable md linking via 'nolinks' class (closes #777)
  Chore(travis): Bump node version to 6.2
  Chore(appveyor): Bump node version to 6.2
  Feat(save-html): beautify HTML/XML output (closes #750)
  Feat(hightlight): use new highlighter (#767)
  Fix(SpecHelper): remove isPhantom() dead code
  Feat(utils): map/reduce linkCSS() instead of jQuery
  Fix (SpecHelper): reduce dependece on jQuery
  Fix(style): reduce ReSpec FOUC (relates to #326)
  Feat(utils): add makeOwnerSwapper() (#766)
  Fix(beautify-options): disable wrap_line_length, as it gets confused
@jimkont
Copy link
Member

jimkont commented May 25, 2016

is there a way to overwrite / bypass the new highlighting? (I also commented here).

We have special css formatting for different pre classes and this new change overrides everything we did. See https://w3c.github.io/data-shapes/shacl/ for example where each pre box had a different color based on the example type

@marcoscaceres
Copy link
Member Author

@jimkont I tried with setting "noHighlightCSS", seems to work well for your case: http://w3c.github.io/data-shapes/shacl/?noHighlightCSS=true

jimkont added a commit to w3c/data-shapes that referenced this pull request May 25, 2016
@jimkont
Copy link
Member

jimkont commented May 25, 2016

works perfect! thanks @marcoscaceres

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants