Questions tagged [textedit]

This tag is AMBIGUOUS, use with caution, since some questions use it for the built-in *text editor* of Max OS X, while others use it for a textedit field in *web development*, like Android for example.

TextEdit is a simple text editor based on the text system in Cocoa.

Source: Apple TextEdit.


A EditText is an overlay over TextView that configures itself to be editable. It is the predefined subclass of TextView that includes rich editing capabilities.

Source: Android EditText Control.

230 questions
188
votes
7 answers

Design Android EditText to show error message as described by google

I need an EditText that looks like this onError: calling onError looks like this instead : Note: the app is running on SDK 19 (4.4.2) min SDK is 1 Is there a method similar to setError that does this automatically, or do I have to write the…
kmn
  • 2,615
  • 4
  • 18
  • 28
9
votes
2 answers

Highlight all occurrences of selected word in AvalonEdit

I need to highlight all occurrences of selected word in AvalonEdit. I created an instance of HihglinghtingRule class: var rule = new HighlightingRule() { Regex = regex, //some regex for finding occurences Color = new…
Yury Permiakov
  • 135
  • 1
  • 8
8
votes
2 answers

Incorect line wrapping when using bulletspan

I'm trying to solve my problem for 2 days now but without any success. The problem is: when I set BulletSpan to text and then display it in EditText everything works fine until I start typing in another text. When the text is wrapped at the end of…
Jan
  • 1,054
  • 13
  • 36
7
votes
3 answers

How can I concatenate dicts (values to values of the same key and new key)?

I have a problem with concatenating dictionaries. Have so much code so I show in example what my problem is. d1 = {'the':3, 'fine':4, 'word':2} + d2 = {'the':2, 'fine':4, 'word':1, 'knight':1, 'orange':1} + d3 = {'the':5, 'fine':8, 'word':3,…
MTG
  • 191
  • 1
  • 22
6
votes
0 answers

How to get the padding to change on the FAB when docked on bottom app bar?

The problem is that when the FAB is docked onto the BottomAppBar, and then the keyboard is called, the FAB padding resize doesn't correctly align above the keyboard for the user to press. Here is what is actually occurring... A quick example of the…
Tom O'Sullivan
  • 3,416
  • 5
  • 15
  • 27
6
votes
2 answers

How do I save a TextEdit (mac) file with a custom extension (.sas)?

So, I'm in the process of writing some code for SAS and I realized I have to save the file as filename.sas. My professor mentioned that I would have to use note pad or another text editor on my computer. How can I use TextEdit on the Mac to save a…
user24872
  • 99
  • 2
  • 2
  • 5
6
votes
1 answer

How do I use savefiledialog in vb.net

I have a program called TextEditPro and I just started it, I'm running into a problem. When I had the code for clicking Save As... I don't know how to use the savefiledialog so when you click Save As it will pop up! Any help?
user2122062
  • 81
  • 1
  • 1
  • 5
6
votes
3 answers

How to disable the default context menu on a text field

By default the JavaFX TextField has a built in ContextMenu with 'undo', 'copy', 'cut' etc. options. The ComboBox also has the same ContextMenu when it is set as editable (the ComboBox is actually part of the editor which is a TextField). I want to…
Chechulin
  • 2,426
  • 7
  • 28
  • 35
6
votes
3 answers

Paste as plain text Contenteditable div & textarea (word/excel...)

I would like the to paste text in a contenteditable div, but reacting as a textarea. Note that I want to keep the formatting as I would paste it in my textarea (from word, excel...). So. 1) Paste text in contenteditable div 2) I get the text from…
Ziggiej
  • 119
  • 1
  • 1
  • 7
5
votes
1 answer

How to select TextEdit region with mouse

I want to select a region of the text with the mouse. TextEdit { id: edit anchors.fill: parent font.pixelSize: 18 focus: true wrapMode: TextEdit.Wrap text: "bla bla" } i can select with the…
jkj yuio
  • 2,543
  • 5
  • 32
  • 49
4
votes
1 answer

Parentheses over selected words in Eclipse

A few days back I felt this question to be dumb and dint post it here, but after even after searching a lot I dint find a proper solution. For those of you who used TextEdit (on Mac), they will perfectly know what I am talking about. While coding I…
svabhishek
  • 83
  • 1
  • 7
4
votes
3 answers

How can I make the text in TextView be two different sizes?

I want to write a line in a TextView where the second word is a quarter of the size of the first word. In my string.xml file I used large and small and it did not work to the extent I want it to. I also tried changing the text size in the…
Aaron
  • 4,380
  • 19
  • 85
  • 141
4
votes
1 answer

How to find the default font for East Asian character in MacOS

When using a text edit application, a font (such as "Menlo") is selected to present glyphs, when the selected font doesn't contain a special glyph(such as “”, it's a simple Chinese glyph, "Menlo" doesn't contain it), Application will pick up a font…
Qing
  • 313
  • 4
  • 15
4
votes
1 answer

How to show error icon inside TextField in Flutter

I need to show an error icon when the user enters invalid input inside a TextField. Also, this icon should have a popup which is open by default when the error happens, like the following image. How I can do that?
Flutter IO Dev
  • 1,759
  • 5
  • 15
  • 20
4
votes
2 answers

What text editor support extraction of found results into another file?

Usually I have the following situation: There is a PONO class with list of the properties. public string UserName { get { return this.userName; } set { if (this.userName != value) { SetDirty(); this.userName = value; } } …
ikutsin
  • 1,118
  • 15
  • 22
1
2 3
15 16