# RawContentNode
Class Inherits CodeBlockNode
## About
`RawContentNode` displays editable source in a preformatted code-style block. Its source is emitted unchanged by both `ToHTML` and `ToMarkdown`.
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| CanImportHTML | element As GraffitiProEditor.HTMLSupport.HTMLElement | Boolean | Returns whether this node type can import the supplied HTML element. |
| Constructor | value As String = "" | (None) | Creates a new raw content node instance initialized from the supplied source. |
| Duplicate | (None) | Node | Returns an independent copy of this node and its configurable state. |
| InspectorSections | (None) | InspectorSection | Returns the user-editable raw content properties exposed by the inspector. |
| LocalizeToolbarItem | strings As GraffitiProEditor.Editor | (None) | Sets this node type's toolbar item text from the supplied editor's localization properties. The editor calls it when the type is registered, when the editor opens, and when a locale pack is applied to the editor. A custom node type can override it to localize its own toolbar item. |
| PerformToolbarAction | editor As Editor <br> selectedItem As DesktopMenuItem | (None) | Handles activation of this node type's main-toolbar item. |
| SupportsTextAlignment | (None) | Boolean | Returns whether the node draws text that follows its TextAlignment. |
| ToHTML | (None) | String | Returns the raw content unchanged for HTML output. |
| ToMarkdown | (None) | String | Returns the raw content unchanged for mixed HTML and Markdown output. |
| TypeName | (None) | String | Returns the display name for this node type. |
## Notes
Raw-content nodes are created explicitly or restored through the editor's JSON format. Registering this node does not change normal HTML import: imported markup continues to produce the appropriate editable node types.
### Security
`RawContentNode` deliberately performs no escaping or sanitization. Treat its content as trusted source, or sanitize untrusted content before assigning it. Script elements, event-handler attributes, remote resources, and other active markup are preserved in exported output.
### Serialization
The raw source is stored in the inherited `TextNode` content snapshot. The JSON node type is `rawcontent`. HTML and Markdown exports return the stored source without adding a wrapper or applying node-level presentation properties.
### Supported Content
The node can contain HTML fragments, style elements with CSS, scripts, SVG, custom elements, comments, or mixed content appropriate to the exported HTML context.
## Examples
Register a raw-content prototype before inserting or restoring raw content nodes.
### Insert Raw Content
```xojo
Editor.NodeTypes.Add(New GraffitiProEditor.RawContentNode)
Editor.AddNode(New GraffitiProEditor.RawContentNode("aside { color: navy; }Application-defined content"))
```