Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

highlight code in webworker #200

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. Use importScripts() in a WebWorker


I want to highlight scripts, users write down
on a textarea. 
Because it takes longer than 1 second for highlighting
more than 180 lines  of code on my system, I want
to highlight the text in a webworker script.
(AMD Athlon X2 5200+ @2,7ghz, 4gb RAM )

Problem is, the prettify script use 'window'
which is not usable in webworker.

Is there maybe a simple solution to go arround or am I allowed
to modify the script by myself?

Thank you
Thorsten


Original issue reported on code.google.com by [email protected] on 5 Apr 2012 at 10:31

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions