I'm trying to make a javascript bookmarklet that will act as a highlighter, changing the background of selected text on a webpage to yellow when the bookmarklet is pressed.  I'm using the following code to get the selected text, and it work...
I have the following phrase:  The birds fly in the sky near planes. 0123456789012345678901234567890123456           1         2         3    How can I highlight in the sky with TinyMce if I know the start(14) and end(23) of the phrase ?  I would like...
Scenario:    Image with several areas mapped.  A list of text on the page   Desired functionality: When I mouseover the different pieces of text in the list, corresponding areas in the mapped image will become highlighted.  Does anyone know of a good...
We need to add anchors and highlights for some keywords/sentences in the html page. It turns out the highlighting is really slow in Firefox.  In the following code, all ranges which need to be highlighted are stored in array hiliteRanges:  for (var i...
I have read other posts talking about the Aptana plugin with Eclipse PDT and I've installed it and still have no syntax highlighting of javascript within my php files.  I have a php file with my php at the top if the form has been submitted and t...
So right now I have functionality where I get a set of indices, and I highlight a text by putting span tags around where those indices fall.  For example, lets I have the following array of indices: [{0,4},{7,11}]  And the text I want to highlight is...
I'm display some plain-text syslog output on a web page.  I'd really like to pretty-print it, highlighting dates and hostnames.  Are there any javascript syntax highlighting libraries which come with syslog support?...
Possible duplicate: Change CSS of selected text using Javascript  I tried the code from above link but not getting the result for iPad browser to highlight the selected text.  function makeEditableAndHighlight(colour) {     var range, sel = window.ge...
I'm testing a small demo  For example I have a text in  tag like this  <body>  good morning, good morning  abcdef ajska good morning ssssss <body>   for example when I select(highlight) the second "good morning",  How can I kn...
I have a simple HTML page in jsFiddle that should open .txt log files:    var openFile = function(event) {   var input = event.target;   var reader = new FileReader();   reader.onload = function() {     var text = reader.result;     var node = docume...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.