Questions tagged [text]

Text is a sequence of printable characters.

Text is a sequence of printable characters.

Text can be unformatted (plain) or formatted (rich).

The most common character codes used for representing text are Unicode and ASCII:

  • ASCII is a character code and an encoding.
  • Unicode is a complex standard, with multiple encodings, the most common of which is UTF-8.
31743 questions
6
votes
3 answers

How to stop Tkinter Text widget resize on font change?

I'm trying to create a simple word processor for starters to learn Python a bit better. I'm using the Tkinter Text widget for the main editing program, the only problem is the height and width are defined by characters. This creates a problem when…
reallycoolnerd
  • 105
  • 2
  • 7
6
votes
6 answers

Validation in swt text

I would like to validate numbers input in text box. I want the user to input only integer, decimal in the box between a maximum and minimum values. How can I make sure of this? Thank you.
Rabin
  • 1,563
  • 4
  • 20
  • 44
6
votes
2 answers

How to show vectorized text using libgdx?

I'm quite a noob with libGDX for Android (nice OpenGL wrapper that can also work on PC), and I've read some nice examples of how to show images and shapes. However, when I wanted to check out how to show text, I noticed that the only thing I could…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
6
votes
4 answers

Extracting Main Content ( Highest Text Density ) From a news article Web-Page

I want to make a code to extract the main news from a news website . News websites contain the main news , ads , reviews , copyright notice so i want to get only the main news like done in boilerpipe but i want to know how to do that . So i want to…
Sudhanshu Gupta
  • 2,255
  • 3
  • 36
  • 74
6
votes
1 answer

Is it possible to do multiple colored text within an Excel cell?

I have string strInfo, which contains "Employee John Maybach". How do I make the "Employee" part black text, and the "John Maybach" part red? The "Employee" part will always remain constant, but the employee's name part will change such that it may…
MrPatterns
  • 4,184
  • 27
  • 65
  • 85
6
votes
8 answers

What is the SQL used to do a search similar to "Related Questions" on Stackoverflow

I am trying to implement a feature similar to the "Related Questions" on Stackoverflow. How do I go about writing the SQL statement that will search the Title and Summary field of my database for similar questions? If my questions is: "What is the…
Picflight
  • 3,832
  • 13
  • 61
  • 90
6
votes
4 answers

CSS text overflows ooh man what a mess

I compiled this jsFiddle demo so that you can see what i am going throw. Using the Twitter Bootstrap 2 i thought everything was fine and simple things were taken care until i hit with this. I don't understand if the markup is not right or the…
Deeptechtons
  • 10,945
  • 27
  • 96
  • 178
6
votes
3 answers

Border around multiline text in a div (html/css)

I want to have a border around multiline text, I have: Morbi hendrerit pretium nibh quis mattis. Blah blah blah blah blah... Now, when the span spans more than one line, the border is created around…
effigiem
  • 93
  • 1
  • 4
6
votes
4 answers

Really fancy printing on python

Since python has way to do nearly everything I was wondering is there any API which would help me print out really fancy text to my log e.g. # # ####### # # ########## # # # # # # # # # # # …
dublintech
  • 16,815
  • 29
  • 84
  • 115
6
votes
3 answers

How to filter rows based on the character length of a field

I have a table with column "id" and "description". Need to find those rows where description has more than 100 characters in it? EDIT: now got the Above question.. But is there any way to get the count of number of characters ?
Parth mehta
  • 1,468
  • 2
  • 23
  • 33
6
votes
3 answers

How to format tabular data as text in Java?

I would like to produce nicely formatted tabular text from arbitrary dataset object models. Is there a good library to do this in Java? Specifically, I want output that is formatted like command line data management tools such as the CLI for mysql.…
dirtyvagabond
  • 1,881
  • 2
  • 19
  • 23
6
votes
4 answers

Save Java txt file to folder

First of all - I love you all at Stackoverflow! Everyone is very helpful! Sadly when I go to answer questions they are all too advance for me :'( I want to save the text file to a folder - but not an absolute folder for example I want to save it to…
Rabiani
  • 143
  • 2
  • 5
  • 12
6
votes
3 answers

How to flip text horizontally?

i'm need to write a function that will flip all the characters of a string left-to-right. e.g.: Thė quiçk ḇrown fox jumṕềᶁ ovểr thë lⱥzy ȡog. should become .goȡ yzⱥl ëht rểvo ᶁềṕmuj xof nworḇ kçiuq ėhT i can limit the question to UTF-16 (which…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
6
votes
3 answers

Center-aligning text on console in Python

I am creating a simple console-based Python (version 2.4) script that will be run on a Bash shell. It is a simple menu-based script that displays a set of options to the user and will do specific tasks depending on the user input. When the script…
GPX
  • 3,506
  • 10
  • 52
  • 69
6
votes
3 answers

count number of lines in file - Scala

How would I go about counting the number of lines in a text file similar to wc -l on the unix command line in scala?
dave
  • 12,406
  • 10
  • 42
  • 59
1 2 3
99
100