FAQ Database Discussion Community


Why is my text in the jTextarea not highlighted anymore?

java,swing,highlight,jtextarea
I am making a small Swing application and have a JTextarea where I want a part of the text to be highlighted. When I start my appl. the line that I indicated to be highlighted is highlighted by the method "highlight()" public static void highlight() { uihw.getTa().setSelectionStart(indexTxt[pencil]);//uihw is the ui...

Unresponsive Script (JS-jQuery Autocomplete)

jquery,text,autocomplete,highlight,diacritics
I'm working with jQuery Autocomplete and I'm kinda stuck on this one particular issue. My autocomplete source list isn't a simple arraylist, It stores database fields. I've replicated the functionality in this JSFiddle. To elaborate, in autocomplete source, I have 3 fields : item ID A simple label, which contains...

Difficulty getting pre and code tags to scroll rather than wrap

css,syntax-highlighting,highlight,pre
My website is built using a static site generator I created myself, and uses Bootstrap for the layout. I'm using Highlight.js for the syntax highlighting (running server-side as part of the build process) and it's working pretty well. However, one thing has stumped me. I would like the code tags...

How to highlight regions of plot with gnuplot

gnuplot,highlight,radar-chart
I'd appreciate if somebody can help with this question. I am working with a radar (or spiderweb) plot with gnuplot 5.0.0: The scale and range in all axes is the same. The numbers at and beyond 1 have a special meaning and I would like to highlight that. I am...

Is there a way to leave the Okular highlighting tool on permanently?

pdf,highlight,okular
I found out I can highlight pdfs with okular in-file by the review tool, but everytime I use the highlighter, it gets turned off afterwards again, so to highlight the next piece of text I have to activate it again. I would like to change this behaviour to 'toggle' on...

flot selection / highlighting - need to have simple value, not range

selection,flot,highlight
I have a flot chart and need to select / highlight one value. Selection requires to set "from-to" range, is it easy to do with static data, but when data set is changed from 0..0.1 till 0..100000 I have to calculate this range to set range to show as line....

Keep text in UITextView highlighted when the popover is dismissed

ios,objective-c,uitextview,highlight,uipopover
I have a UIPopover that shows up a plain view containing a UITextView filled with some text. I have managed to highlight the text. When the popover is dismissed, and re-opened, the highlight disappears. I want to keep the text highlighted even if if the application is closed. Any ideas...

iOS - UIImage tinting highlight always grey

ios,uibutton,uiimage,highlight,tint
I have this button where the background colour is white and the image tint is colour x. When selected, I want the colour to swap - bg is x (which I can do easily) but the image tint always is grey (or a darker version of the colour I set)....

Highlighting data range whille retaining original data label axis

excel,highlight,scatter-plot
So I'm not sure whether this can be done or not, but I want to highlight certain scatter plot points on my graph whilst still retaining the original axis labels. This is a little snip of my data:- (0.5,0.525] 272 (0.925,0.95] 116 (0.975,1] 446 (1,1.025] 2840 (1.975,2] 974 (2,2.025] 1400...

Highlighting a certain part of a JTextArea

java,highlight
I'm trying to highlight a certain part of text in the text area that I've created. What my program does is that it shows a series of numbers delayed in a text area (for this code, it's 0-9). What I want is that I want to highlight numbers 2, 4,...

Highlight entire line in Richtextbox if a text is present

c#,winforms,richtextbox,highlight
I'm trying to highlight a particular line in my RichTextBox as shown in figure. int ptrsize = 10; int* linenum; for (int i = 0; i < ptrsize; i++) { int value = (linenum[i]) * 10; string searchText = value.ToString(); int indexToText = richTextBox.Find(searchText); int endIndex = searchText.Length; richTextBox.Select(indexToText,...

Cocoa osx NSTableview change row highlight color

osx,cocoa,colors,nstableview,highlight
In my application I have a view based NSTableView with one column. The highlight color of the rows is set to regular (blue). I need to change that color to my custom color. In the interface builder I tried changing it but the only options are "None, regular and source...

how to keep displaying the selected contacts android

java,android,listview,contacts,highlight
so I've created a list view in my xml file which just has the simple id/list property. In my class, I've set the name and number parameters in from the ContactsContracts class. I've got 2 questions, First is when I click a number/name it should be highlighted and be selected...

UIButton not showing highlight on tap in iOS7 - Swift

ios,swift,uibutton,highlight
From this post they said that it is kind of a bug in ios 7 and 8 - Button in UITableViewCell does not change to highlighted when tapped. Here I post one answer for this in Objective-C: Create a custom UITableView subclass and custom UITableViewCell subclass. Use this sample UITableView's...

Interactive Selection highlighting of text inside the browser

javascript,jquery,selection,highlight,interactive
what I need is interactive selection highlighting of text in the browser via Javascript. To be more specific, lets just say I have a bunch of text in a div element like so: <div>The quick brown fox jumps over the lazy dog ... </div> Now what I want to do...

How do I highlight complete line in a RichTextbox in a C# form

c#,winforms,richtextbox,highlight
After browsing a .txt file I stored each line in an array (i.e. filetext)... String[] filetext = File.ReadAllLines(filepath); How can i highlight particular lines with a color and show them in RichTextBox?...

Highlighting specific ranges on a Graph in R

r,graph,highlight
library(season) plot(CVD$yrmon, CVD$cvd, type = 'o',pch = 19,ylab = 'Number of CVD deaths per month',xlab = 'Time') if i wanted to highlight a region of the graph based on x values say from 1994-1998 how do i do this? Any thought would be appreciated Thanks....

gnuplot highlighting points when with lines

plot,gnuplot,highlight
I have 4 points I would like to plot using gnuplot, but with lines. The problem is, I can't find how to highlight these 4 points on the drawn line. I would like for the plot to be a line through the points, but that these points are also clearly...

How to highlight rulerformat

vim,highlight,rc
I want highlight the rulerformat in my .vimrc. I have set ruler set rulerformat=%55(%{strftime('%a\ %b\ %e\ %I:%M\ %p')}\ %5l,%-6(%c%V%)\ %P%) I have subsequently tried all of the following: hi rulerformat ctermbg=1 hi rulerformat ctermbg=red hi Group1 ctermbg=red "if you modify the rulerformat slightly you can try to access group 1...

Interactive Choropleth Map - Highlighting - getcolor function

leaflet,highlight,interactive
I'm trying to create a map of bicycle routes which will get color from properties from geojson file. It is based on Interactive Choropleth Map. The problem I have at the moment is highlighting. This part of the code checks in geojson properties the colour of route: function getColor(d) {...

Get highlighted variable -Eclipse

java,eclipse-plugin,syntax-highlighting,eclipse-cdt,highlight
I am implementing an Eclipse plugin for C programmers. I can't find a way to get the variable that the user already highlited.(The user will highlight a variable in the editor and I need to know which variable it is/variable's name/location of this variable in the editor, like line number..)...

How do I achieve this style of underlined link?

hyperlink,highlight,underline
I don't want to know how to highlight or underline something. I'm wondering how this was done: I first saw this being used by Wired on an Android note 3 inside Chrome. ...

How to highlight part of the text contained in a textview?

java,android,textview,highlight
If possible, how can I highlight part of text contained in a textview and retrieve them back to the code for other usage?

highlight “partial” duplicates across entire sheet in Google Sheets using conditional formatting

formatting,duplicates,conditional,highlight,partial
Im trying to highlight partial duplicates in google sheets using conditional formatting. I need to highlight duplicates across multiple columns and rows in any matching cells. so far I'm using this... =countif(INDIRECT({"C2:Z18"}),C2)>1 Which works to a degree, but it only highlights exact matches. I need to find a way to...

How to highlight tabs and spaces in vim [duplicate]

vim,sublimetext,highlight
This question already has an answer here: Make Vim show ALL white spaces as a character 20 answers I want to highlight tabs and spaces. In sublime text I activated an "draw_white_space": "all" option. After that all tabs and spaces is highlighting. I want to activate the same option...

How to draw a rectangle over an image and save it in VB.Net

vb.net,image,highlight
I have used the following code to draw a rectangle on the image buI i an not able to save the image with the highlighted rectangle. Only the original image is saved not the image with the rectangle. Please help me with this. Private Sub PictureBox1_MouseDown(sender As Object, e As...