Feature #46

Integrate JavaScript and CSS Scanners into HTML Scanner

Added by Kornelius Kalnbach over 2 years ago. Updated about 1 month ago.

Status:New Start Date:09/18/2008
Priority:Normal Due date:
Assigned to:Kornelius Kalnbach % Done:

40%

Category:Scanner improvements
Target version:1.0 RC1

Description

HTML can contain CSS and JavaScript. CodeRay should highlight them using nested scanners.


Add

Subtasks


Add

Related issues

History

Updated by Kornelius Kalnbach over 2 years ago

  • Target version changed from 0.8 to 1.0 RC1

Updated by Kornelius Kalnbach over 2 years ago

Comment Edit

I move this to 1.0 because it's not crucial currently. Comment if you think different.

Updated by Kornelius Kalnbach over 1 year ago

  • Target version changed from 1.0 RC1 to 1.1

Updated by Kornelius Kalnbach over 1 year ago

  • Category changed from Scanner requests to Scanner improvements

Updated by Troex Nevelin about 1 year ago

Comment Edit

There is kinda dirty trick, but line-numbers will become mad, maybe allow code inside code taq to temporary switch highlighter?

Updated by Kornelius Kalnbach 11 months ago

  • Target version changed from 1.1 to 1.0 RC1
Comment Edit

Actually, I'd like to have this feature in 1.0.

CSS should be highlighted in:
  • style tags
  • style="…" attribute values
JavaScript should be highlighted in:
  • script tags
  • onclick="…" attribute values (and other on* friends)
  • href="javascript:…" attribute values

Shouldn't be that hard.

Updated by Kornelius Kalnbach about 1 month ago

Comment Edit

JavaScript is now integrated. Needs lots of testing.

Not satisfied with the style yet. Highlight JS like Ruby in ERb?

Updated by Kornelius Kalnbach about 1 month ago

  • % Done changed from 0 to 40

Also available in: Atom PDF