a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Other:
 texteditor.gadget
  GA_TEXTEDITOR_AreaMarked
  GA_TEXTEDITOR_ColorMap
  GA_TEXTEDITOR_Contents
  GA_TEXTEDITOR_CursorX
  GA_TEXTEDITOR_CursorY
  GA_TEXTEDITOR_DoubleClickHook
  GA_TEXTEDITOR_ExportHook
  GA_TEXTEDITOR_ExportWrap
  GA_TEXTEDITOR_FixedFont
  GA_TEXTEDITOR_Flow
  GA_TEXTEDITOR_HasChanged
  GA_TEXTEDITOR_ImportHook
  GA_TEXTEDITOR_ImportWrap
  GA_TEXTEDITOR_InVirtualGroup
  GA_TEXTEDITOR_InsertMode
  GA_TEXTEDITOR_Pen
  GA_TEXTEDITOR_Prop_DeltaFactor
  GA_TEXTEDITOR_Prop_Entries
  GA_TEXTEDITOR_Prop_First
  GA_TEXTEDITOR_Prop_Visible
  GA_TEXTEDITOR_Quiet
  GA_TEXTEDITOR_ReadOnly
  GA_TEXTEDITOR_RedoAvailable
  GA_TEXTEDITOR_Separator
  GA_TEXTEDITOR_Slider
  GA_TEXTEDITOR_StyleBold
  GA_TEXTEDITOR_StyleItalic
  GA_TEXTEDITOR_StyleUnderline
  GA_TEXTEDITOR_TypeAndSpell
  GA_TEXTEDITOR_UndoAvailable
  GA_TEXTEDITOR_WrapBorder
  GM_TEXTEDITOR_ARexxCmd
  GM_TEXTEDITOR_ClearText
  GM_TEXTEDITOR_ExportBlock
  GM_TEXTEDITOR_ExportText
  GM_TEXTEDITOR_HandleError
  GM_TEXTEDITOR_InsertText
  GM_TEXTEDITOR_MacroBegin
  GM_TEXTEDITOR_MacroEnd
  GM_TEXTEDITOR_MacroExecute
  GM_TEXTEDITOR_MarkText
  GM_TEXTEDITOR_Search
  OM_TEXTEDITOR_Replace
  texteditor.gadget
Include
GuruMeditation
Docs » Autodocs » texteditor.gadget » GA_TEXTEDITOR_ImportHook

NAME

        GA_TEXTEDITOR_ImportHook -- [IS.], struct Hook *
SPECIAL INPUTS
GV_TEXTEDITOR_ImportHook_EMail
GV_TEXTEDITOR_ImportHook_MIME
GV_TEXTEDITOR_ImportHook_MIMEQuoted
GV_TEXTEDITOR_ImportHook_Plain (default)

FUNCTION

        Since this gadget allows different text styles, you can supply an
importhook to parse the text correctly.
The default importhook understands the following escape sequences:
<ESC> + u Set the soft style to underline.
<ESC> + b Set the soft style to bold.
<ESC> + i Set the soft style to italic.
<ESC> + n Set the soft style back to normal.
<ESC> + h Highlight the current line.
<ESC> + p[x] Change to color x, where x is taken from the colormap.
0 means normal. The color is reset for each new line.
The following sequences are only valid at the beginning of a line.
<ESC> + l Left justify current and following lines.
<ESC> + r Right justify current and following lines.
<ESC> + c Center current and following lines.
<ESC> + [s:x] Create a separator. x is a bit combination of flags:
Placement (mutually exclusive):
1 = Top
2 = Middle
4 = Bottom
Cosmetical:
8 = StrikeThru - Draw separator ontop of text.
16 = Thick - Make separator extra thick.
GV_TEXTEDITOR_ImportHook_MIME:
This builtin hook will convert quoted-printables (e.g. "=E5") to the
ASCII representation, and merge lines ending with a "=", it will
wordwrap the text (using the value set with
GA_TEXTEDITOR_ImportWrap), it will highlight all lines which start
with ">" it will make real *bold*, /italic/, _underline_ and
#colored#, and it will replace <sb> or <tsb> with a real separator
bar. It stops parsing when it reaches a NULL byte.
The color used for #colored# text is colormap entry 6, which defaults
to MPEN_FILL. To override it, just supply a colormap with entry 6 set
to whatever color you would like.
GV_TEXTEDITOR_ImportHook_MIMEQuoted:
Like the MIME importhook, but each line gets quoted and highlighted.
GV_TEXTEDITOR_ImportHook_EMail:
Like the MIME importhook, but it doesn't convert quoted printables.
You can of course create your own importhook, there is an external
file which describes the procedure.

NOTES

        Don't use custom hooks yet.

SEE ALSO

GA_TEXTEDITOR_ColorMap(), GA_TEXTEDITOR_ExportHook(), GA_TEXTEDITOR_ImportWrap()

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Crystal

SPB
CSL
DC
TRSI

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se