Skip to content
Advertisement

Making line numbers uncopyable

I’m working on adding line number support to Rainbow, a syntax highlighter, but I can’t figure out how to make the line numbers uncopyable. Disabling selection via user-select: none; makes an element unhighlightable, but you can still copy its text by highlighting around it and then copying, which ends up copying the line numbers along with code. Here is a

Kinetic layer on top of Openlayers

I developed a canvas visualization of OpenStreetMaps by means of miscellaneous scripts and rendering algorithms from the internet. On top of this I have a Kinetic Stage which draws custom objects which cannot be drawn by the functionality of Openlayers. Openlayers provides many functions which I want to use and therefore I’m trying to switch over to this framework. I’m

Print out Javascript array in table

I have this array: and I would like to print the entire array out as a html table. How would I accomplish this? I tried this but could only get the final name the print: Answer Using jQuery you can do: jsFiddle: http://jsfiddle.net/davidbuzatto/aDX7E/

Advertisement