caret Questions

4

Solved

I'm trying to implement a feature inside the current program that I'm writing and I wanna learn how to scroll down to specific text inside a JTextArea. For example, lets say I have the following: ...
Dyedinthewool asked 18/11, 2012 at 5:54

11

Solved

I have been trying to ask this before, without any luck of explaining/proving a working example where the bug happens. So here is another try: I’m trying to replicate a placeholder effect on a con...
Bergschrund asked 1/2, 2012 at 9:25

1

I am currently trying to create a syntax highlighter for Javascript and I currently facing the issue which I have found out is common with creating something like this which is setting the caret po...
Pallaten asked 11/4, 2020 at 10:26

8

Solved

Using jQuery, how can I get the input element that has the caret's (cursor's) focus? Or in other words, how to determine if an input has the caret's focus?
Pamper asked 30/6, 2012 at 21:55

11

Solved

I have a text input in my HTML. Is there a way to hide the blinking text caret when the input gets focus? I am open to doing this with JavaScript or CSS.
Allover asked 8/9, 2010 at 19:14

2

I want to draw a caret in a div (not a text area, neither a contenteditable). I know exactly the position where the caret must be drawn (between two characters). I through inserting this character ...
Spieler asked 7/4, 2020 at 20:25

2

Solved

I've noticed that this declaration involving a caret (^) character is pinned on the cdecl.org site at the top: // "cast foo into block(int, long long) returning double" (double (^)(int , long long...
Ex asked 9/3, 2020 at 11:56

4

Solved

Is there a way to hide or move the PasswordBox's caret?
Simmonds asked 1/6, 2009 at 17:9

3

i'm working on a project(Swift4,Xcode 9.2) which has a feature to get text input and the blinking bar/line should be of big size (it should be Square instead of bar/line), so i placed a UITextFiel...
Briefs asked 23/4, 2018 at 5:49

4

Solved

output in Chrome: <div id="content" contenteditable="true" style="border:1px solid #000;width:500px;height:40px;"> hey <div>what's up?</div> <div> <button id="insert_c...
Katelin asked 20/11, 2010 at 14:49

2

Solved

Specifically when does ^ mean "match start" and when does it mean "not the following" in regular expressions? From the Wikipedia article and other references, I've concluded it means the former a...
Fillip asked 5/6, 2013 at 15:50

4

I've been searching a lot but i could't find a way to get (X,Y) coordinates for the caret on a content editable div,there's a lot of content on the web about this,but the problem none of the pages ...
Psychognosis asked 10/6, 2013 at 3:56

3

I am trying to reproduce in my app a UX similar to Microsoft Excel / Google Sheets when you type of formula and you have an autocomplete dropdown for the different formulas and variables you have a...
Sparse asked 19/2, 2018 at 14:14

1

Solved

I have a contenteditable div where I replace hashtags with clickable links when the user clicks on space or on enter. The user writes down: I love but there is no fish at home| He then realize...
Peroxy asked 16/8, 2019 at 15:23

3

Solved

The question says it all. I need the place to style the current line highlight.
Odaodab asked 1/7, 2013 at 1:15

1

I'm using Display flex on a couple DIVs. I'm vertically centring the inner DIV text content. It centres correctly however when i click within the content editable inner DIV while there is no ...
Hardandfast asked 22/2, 2019 at 3:13

7

Solved

I am using an <input readonly="readonly">, styled as normal text to remove the appearance of an interactive field, but still display the value. This is very useful to prevent a user from edi...
Pretoria asked 26/3, 2011 at 17:26

5

Solved

I ran across the caret operator in python today and trying it out, I got the following output: >>> 8^3 11 >>> 8^4 12 >>> 8^1 9 >>> 8^0 8 >>> 7^1 6 >...
Meantime asked 16/3, 2010 at 0:21

10

Solved

I know that Mobile Safari won't fire events while in "momentum" (-webkit-overflow-scrolling: touch;) scrolling. But this is not entirely the same thing, because Safari handles the (blinking) caret ...
Mildred asked 23/12, 2013 at 5:32

1

I am using the Avalon text editor and the cursor position is not changed for the key up and key down. Can anyone suggest me how to overcome this issue? The cursor position properly changes for th...
Elledge asked 18/1, 2018 at 7:29

3

Solved

Okay, I've been looking all over the web to find a solution but I couldn't find one, is there a way to get the word before the caret position in an editable div so a bit like: This is some| demo t...
Prefix asked 31/3, 2012 at 21:7

1

Solved

To get and set the caret position in an contenteditable element, I've tried the code from this answer, but the start & end position resets as you move into different text nodes. <div conten...
Hebbel asked 26/9, 2017 at 19:56

0

I find many professional text editors like Sublime Text and Synwrite that has a feature as a Multi-Caret editor. The text caret will actually insert to different lines inside the editor so you can ...
Gallager asked 23/8, 2017 at 13:43

1

I am creating a TinyMCE plugin with custom button that insert <span>test</span> in current caret position. Moreover clicking this button again while caret is in previously inserted text...
Batangas asked 28/7, 2017 at 20:32

1

Solved

I am currently trying to build an application which behaves similar to a command shell. I want to display a path that I give it (or a '>' character at the very least) before the user's input text i...
Whose asked 28/6, 2017 at 8:53

© 2022 - 2024 — McMap. All rights reserved.