La traduzione di questa pagina non è stata ancora completata. Finché non lo sarà, le parti non tradotte saranno visualizzate in inglese.

stylededit-icon_64.pngStyledEdit

Deskbar:Applicazioni
Percorso:/boot/system/apps/StyledEdit
Impostazioni:nessuna


StyledEdit è il semplice editor di testo fornito con Haiku. Per quanto salvi i file in formato puro testo, supporta attributi addizionali affinché al testo possano essere applicate alcune semplici regole di formattazione, quando StyledEdit è utilizzato per visuaizzare il file.Although it saves files in plain text format, additional attributes are written in order to have limited formatting capabilities when viewed with StyledEdit.

stylededit.png

Per tua informazione, questo è il modo in cui gli attributi addizionali si presentano quando esaminati da Terminale attraverso l'uso del programma listattr:

~> listattr /boot/home/Desktop/test.txt
File: /boot/home/Desktop/test.txt
  Type         Size                 Name
-----------  ---------  -------------------------------
     Int-32          4  "be:encoding"
MIME String         11  "BEOS:TYPE"
     Int-32          4  "wrap"
     Int-32          4  "alignment"
   Raw Data       1048  "styles"

1071 bytes total in attributes.

As you can see, all the formatting options from StyledEdit's menu are present: line wrapping (on/off) and alignment (left/center/right), each in one attribute. Styles (font, size, color) of each letter mangled into another.

Because these attributes are a file system feature of BFS, this means that not only other platforms just see a plain text file, it also follows, that the formatting will be lost when a file is stored on a non-BFS partition. The above attributes are simply stripped and what's left is the ordinary, plain text file.

In any case, it's a nice idea having the possibility of colored text in different fonts and sizes while still being a normal text file. A ReadMe.txt, for example, is therefore readable in a shell on any platform and still has a bit of style when viewed via double-click from Haiku.

Actually using StyledEdit is so simple, we'll skip explaining every mundane menu item. Just write down your text then select the words you'd like to format and apply font, size and color from the Font menu. Line wrapping and alignment from the Document menu only work on the whole file.