Email or username:

Password:

Forgot your password?
Top-level
Mayank

@scrwd @mia @bramus @Meyerweb you can use anything you want. the custom highlight api doesn't care

1 comment
Jon replied to Mayank

@hi_mayank @mia @bramus @Meyerweb just trying to get my head around it - looks like key JS requirement is creating and registering the text ranges - and to do this requires a start an end "position" - so presumably you could "tokenise" somewhere other than the client as long as you shipped this big list of number pairs and types with each code example? Would maybe assume that with a large number of code examples it is very quickly less bytes to do it all clientside though - just thinking aloud…

Go Up