textformatting

Wiki style text formatting

Hi, I'm looking for some kind of text-parser for ASP.NET that can make HTML from some style of text that uses a special format. Like in Wiki's there is some special syntax for headings and such. I have tried to look on google, but I did not found anything for .NET. Do someone know about a library for .NET that can parse the text to HTM...

How to change Word.Range text without losing format

Hi, Anyone knows how can I change the text of a Word.Range object but still keeping it's format? For example if I have "this text" and I change it to "that txt", txt will still be in bold. I'm looking for a way to change the whole text of the range, not just a single word, as I'm getting the new text from an independent API, I can assu...

Is there a C# auto formatter that I can use to define custom rules for formatting?

My group has a source analysis tool that enforces certain styles that we have to comply with. I can't change it, and some of the rules are just a pain. One example is that all properties have to come before methods, and all constructors must come before properties. It seems silly to me that I have to take time to do something to the p...

How do I format an Integer using current locale in Delphi.

var i : integer; i := 1234567; Given the above, I want the string "1,234,567" as output (assuming UK locale). IntToStr just gives me "1234567". I'm sure there's a one-liner for this, but I can't find it... ...

Why does "%.3i" print leading zeros?

There was a bit of a surprise with some code today. I was compiling it on AIX, with the warning level set to anal to see what rogue issues might be lurking. Something new crawled out of the code. 1540-2837 (W) '0' flag is disregarded when combined with precision and 'i' printf format. After looking at the offending...

Combining Word Documents Without Losing the Individual Formatting

The Word documents I am trying to combine all have Headers and Footers, and I'm trying to combine them into one file while keeping the individual formatting of each document intact. I am using Word 2003 (XP Pro). I have tried a few different approaches already like placing the cursor in the Master document where I want to insert anothe...

Safe Web Text Formatting

I am building a web application that will need to allow users to save formatted text to a database. Basically they just need to be able to change font color, font background color, font size, bold, italics, and underline. I would like to use something that I can just attach to a text area to make a formatting bar show up. It would be n...

Visual Studio HTML designer adds a <p></p> every time I switch to design view, I end up with a gazillion lines

I use split view, whenever I change the HTML code and switch to design view (clicking that popup "Design view is out of source view blah blah") VS adds 3 lines to the HTML. eventually it has many many lines which is very annoying to code like this. Has enyone encountered this before? ...

Outline/Stroke the formatted text

Hi, I am rendering the FormattedText with different foreground color to different character(fore example first two red, next 2 yellow like..), now i have to display outline surrounded to this text. For apply outline(stroke) i have to convert this FormattedText into geometry and then draw geometry like Geometry textGeometry = FormattedTe...

Why does Vim add spaces when joining lines?

I want to unwrap text in Vim. When I join lines I get an additional space between sentences. Why is that? ...

Trying to pass TextFormat into other Classes, getting error

Happy Tuesday everyone :) I noticed I was using the same fonts over again in several of my Sub Classes, so I figured I'd just make a Fonts Class to handle all those. Anyways I'm scratching my head around how to get those TextFormats created in my Fonts class into my other Classes cleanly. I don't believe I'm doing this the correct wa...

Export the Eclipse XML Formatting Rules?

Is there a way to export the settings defined in Window > Preferences Dialog under XML > XML Files > Editor in Eclipse 3.5 Galileo (JEE Package)? And where do Eclipse stores these settings? Now i got an eclipse_xml_format.epf with the following content /instance/org.eclipse.wst.xml.core/lineWidth=120 /instance/org.eclipse.wst.xml.core/...

How do I get HTML Tidy to not put newline before closing tags?

HTML Tidy has this infuriating habit of putting a newline before the closing tag. For example: <p>Some text</p> becomes <p>Some text </p> How do I tell Tidy to keep the closing tag on the same line as the end of the content? Btw, I am running Tidy through Notepad++, if that makes any difference. ...

In actionscript 3.0/flex, how to maintain the individual text format of the characters from one text box to another?

I have two text areas in adobe flex - an original and a target text area. The original text area has text in it and some of the words are in bold (the user has the option to bold whatever selection in the text they want via a bold button). What is the easiest way to maintain this text formatting when copying it over to the target text ...

Selective coloring on dynamic TextBlock content in WPF

For selective coloring of static content the following suggestion works fine : http://stackoverflow.com/questions/2435880/is-it-possible-to-seletively-color-a-wrapping-textblock-in-silverlight-wpf However my content will be generated at runtime. For ex. if the Content generated is : "A Quick Brown Fox" Then I need they string "Brown" to...

Indentation in WPF TextFormatter

Hi everybody! I'm making a WPF text-editor using TextFormatter. I need to indent some paragraphs, so I'm using the Indent property from the TextParagraphProperties class. This works great in this scenario: Regular text without any indentation.     This paragraph has a uniform     indentation so everything is     ok. But I also need th...