Qeole / Enlight

Firefox add-on providing syntax highlighting for raw code, based on the highlight.js project.
Mozilla Public License 2.0
44 stars 2 forks source link

Prevent auto syntax highlight for source HTML of pages #2

Closed Qeole closed 9 years ago

Qeole commented 9 years ago

Starting with Firefox v41, web pages HTML source code is no more displayed in new windows but in new tabs instead. Firefox already performs syntax highlighting in these tabs, which conflicts with the add-on highlighting features.

It is not a problem for users manually highlighting pages, but it becomes a greater concern when auto highlighting is enabled.

Auto-highlighting should be prevented on these pages (maybe we can filter on view-source: URLs).

Qeole commented 9 years ago

Commit c3a6f2f6551dd875cb420ab80449f223540d9abf adds filtering on view-source: for auto-detection of tabs to highlight, and fixes the issue. This is a minor modification, so no request for review on AMO now.