|
XML Editor |
|||||||||
|
Home
Products Product Comparisons Features Screen Shots Downloads Updates Free Licenses Support FAQ Editors Java HTML Perl JSP JavaScript PHP VBScript Velocity XML |
Both JPad Pro and SitePad Pro support multiple XML editors. The built-in XML support includes editing, smart indent, and syntax coloring for *.xml, *.xsl, *.xsd, *.conf and *.dtd file types. Additional XML file types can easily be added. The editing support includes support for embedded scripting languages. ![]() Editing XML with SitePad ProXPath supportWith the XPath toolbar (only available in SitePad Pro) you can enter an XPath expression and see the results marked in the document. Options include marking the tag, the content and both the tag and content. There is also an option to trim whitespace from each block. The marked blocks can be accessed from a script. See Tools/Blocks for included scripts. ![]() Viewing an XPath Expression in SitePad ProYou can also access the full DOM for a document from a script. The following code snippet shows how to create and load XML data into Microsoft's MSXML ActiveXObject. See the transform script in Tools/XML as an example (use the context menu to open the transform script).
var
xmldoc =
new
ActiveXObject(
"MSXML2.FreeThreadedDOMDocument"
);
var
xsldoc =
new
ActiveXObject(
"MSXML2.FreeThreadedDOMDocument"
);
if
(xmldoc && xsldoc)
{
var
lineCount = editor.getLineCount();
var
data = editor.copy(0,0,lineCount-1,32000);
// copy all the data
if
(xmldoc.loadXML(data))
...
Other features include custom menus, custom toolbars, smart keys (key patterns that invoke a script), multifile find and replace, spell checker, project, split windows, code folding (outlining), background colors, a movable menu bar, movable tool bars, movable workspace panel, movable output panel, optional MDI editor tabs, output panel tabs, support for html based modeless dialogs. Built-in toolbars include a Finder toolbar, command toolbars, source control toolbar, and a document set toolbar. Support is also included for multiple source control systems. In addition to XML, other file types supported by SitePad Pro and JPad Pro include java, c/c++, php, javascript, perl, vbscript, and html. Custom file types with syntax coloring can be easily added. SitePad Pro also includes basic .NET support for C# including an editor, code folding, and smart complete for the core .NET classes. |
|||||||||
|