Code Editor

Overview

The Steelkilt Code Editor allows you to customize the automatically generated EPUB contents before export.

Code Editor has features common to many developer tools:

  • Line numbering
  • XHTML and CSS syntax highlighting
  • Themes with adjustable fixed-width fonts and color schemes (for background and syntax highlighting)
  • Context-sensitive code completion

In Code Editor, the Code Navigator will give you access to the following:

  • Templates and Extensions
  • Container (container.xml)
  • Package

Context-Sensitive Code Completion

Code Editor will help you write code. Whenever you start typing, Code Editor will analyze what you have typed and the characters surrounding the cursor. Where possible, Steelkilt with present an autocompletion menu containing context-sensitive suggestions.

To navigate the menu, scroll with your mouse or press up/down keys as required. Continue typing to narrow the list of suggestions. Click on an entry or press enter to accept the suggestion.

You can also launch the menu before you type any characters. Simply press the ESC key. If Steelkilt can suggest something, the menu will appear.

Adding Custom Content

You can add custom content to the Package using a range of commands:

CommandAccessDetails
New FolderSelect Package or any descendent of Package.

Context menu: New Folder

Menu bar: File Menu > New > Folder
Creates a new folder.
New Blank DocumentSelect Package/XHTML or any descendent of Package/XHTML except the Style and Images folders.

Context menu: New Blank Document

Menu bar: File Menu > New > Blank Document
Creates a new .txt Resource with no content or media type.

Change the Resource’s file extension and settings as required.


New XHTML PageSelect Package/XHTML or any descendent of Package/XHTML except the Style and Images folders.

Context menu: New XHTML Page

Menu bar: File Menu > New > XHTML Page
Creates a new .xhtml Resource with content based on Templates/<HTML> and an application/xhtml+xml media type.
New OPFSelect Package/XHTML or any descendent of Package/XHTML except the Style and Images folders.

Context menu: New OPF

Menu bar: File Menu > New > OPF
Creates a new .opf Resource with a <metadata> element populated with content based on Book Settings and empty <manifest> and <spine> tags.

Does not create a corresponding entry in container.xml.
New CSSSelect Package/XHTML or any descendent of Package/XHTML except the Images folder.

Context menu: New CSS

Menu bar: File Menu > New > CSS
Creates a new .css Resource with no content and a text/css media type.
Import Files…Select Package/XHTML or any descendent of Package/XHTML.

Context menu: Import Files…

Menu bar: File Menu > Import Files…
Allows you to import files and folders.

When the Style folder is selected, only .css files can be imported.

When the Images folder is selected, only images can be imported.

Adds corresponding child Resources to the selected Resource.
Add encryption.xmlSelect Container or any descendent of Container.

Context menu: Add encryption.xml

Menu bar: File Menu > New > Container > encryption.xml
Creates an empty encyption.xml Resource.
Add manifest.xmlSelect Container or any descendent of Container.

Context menu: Add manifest.xml

Menu bar: File Menu > New > Container > manifest.xml
Creates an empty manifest.xml Resource.
Add metadata.xmlSelect Container or any descendent of Container.

Context menu: Add metadata.xml

Menu bar: File Menu > New > Container > metadata.xml
Creates an empty metadata.xml Resource.
Add rights.xmlSelect Container or any descendent of Container.

Context menu: Add rights.xml

Menu bar: File Menu > New > Container > rights.xml
Creates an empty rights.xml Resource.
Add signatures.xmlSelect Container or any descendent of Container.

Context menu: Add signatures.xml

Menu bar: File Menu > New > Container > signatures.xml
Creates an empty signatures.xml Resource.

Inspector

When you select any automatically generated Resource (such as Templates, Extensions, container.xml, book.opf, book.css, or XHTML Resources representing Documents or Chapters etc.), the Inspector will include some explanatory text outlining the purpose of the Resource.

Selecting a custom Resource will show Resource Settings.


Related Topics