Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3872234
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T21:54:13+00:00 2026-05-19T21:54:13+00:00

I am looking for a type of text file like notepad .txt, but one

  • 0

I am looking for a type of text file like notepad .txt, but one that italics can be saved into without loosing the style. The file dosn’t need to display the italics just as long as the lines of text can be loaded out into a different file or program console with the italics back in place.

I have a mixture of plain and italic text in a JTextPane and I need a file format to save it into without losing the italic or creating all these fancy tags – if possible.

Any ideas…?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T21:54:13+00:00Added an answer on May 19, 2026 at 9:54 pm

    RTF is a textual format that preserves formatting, although sometimes it can be tricky to generate. It’s been around for ages so it’s readable by Windows Wordpad and Word.

    To find out how to mark text italic in RTF, enter it in WordPad, select formatting you like and save it as .rtf. After you’ve done so, change the extension to .txt and see the decoration code around your text. You can replicate later it in your app.

    HTML is simpler but opening HTML file would usually start the browser, whereas I believe you want text editor to start.

    UPDATE:

    From your clarifications I understand the user is not to read the file, it will only be read/written by your program. In this case HTML is much simpler and better suited.

    Please see examples of RTF and HTML being loaded in JTextPane.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for a regular expression, but can't find. Parsing a text file looking
I have a plain text file looking like this: some text containing line breaks
I'm looking for some type of profiling utility I could use where I can
I am looking into creating type-safe generic controls. This is targeting the (reduced) generics
I'm looking to build a flyout type menu in Silverlight that will be added
I am looking for a Lua front-end compiler that is type-checked at compile time,
I'm looking for a package that will automatically detect the type of and extract
I've recorded my track to a text file and now I'd like to insert
I'm looking to remove lines with strings or empty lines in a text file.
I like to have a batch file which checks if an entered text in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.