-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Update Frequency override in options dialog.
Merge doc fixes.
- Loading branch information
1 parent
d8e95f9
commit 677cecb
Showing
29 changed files
with
322 additions
and
205 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,46 @@ | ||
|
||
## Custom Editors | ||
|
||
If an XML schema is provided for validation then that schema can also define custom editors on specific | ||
If an XML schema is provided for validation, it can also define custom editors on specific | ||
`<xsd:simpleType>` tags. | ||
|
||
A default custom editor is provided for the simpleTypes xsd:date xsd:dateTime and xsd:time. Any element or attribute of | ||
this type will be edited using the WinForms DateTimePicker, configured for the current system locale, for example: | ||
A default custom editor is provided for the simpleTypes `xsd:date`, `xsd:dateTime`, and `xsd:time`. Any element or | ||
attribute of this type will be edited using the WinForms DateTimePicker, configured for the current system locale, for | ||
example: | ||
|
||
|
||
![datetime](../assets/images/datetime.jpg) | ||
|
||
## Custom Builders | ||
|
||
Custom Builders provide a button that appears at the top of the intellisense list, when the user clicks on that button | ||
it invokes the builder to edit the value, which usually pops up a modal dialog. | ||
Custom Builders provide a button that appears at the top of the intellisense list. When the user clicks on that button, | ||
it invokes the builder to edit the value, typically triggering a modal dialog. | ||
|
||
A custom builder for editing file names is provided and is automatically associated with the xsd:anyURI data type. You | ||
can associate this builder manually using the `vs:builder="XmlNotepad.UriBuilder">` attribute. When you edit an element | ||
of this type a button will appear titled "Browse..." at the top of the intellisense list and when you click on this | ||
button the WinForms OpenFileDialog will appear. | ||
of this type, a button titled "Browse..." will appear at the top of the intellisense list, and clicking it will open | ||
the WinForms OpenFileDialog. | ||
|
||
A custom builder for editing colors is provided. But since there is no standard color type defined in XSD, you must | ||
specify the vs:builder attribute as shown in the following example: | ||
A custom builder for editing colors is also provided. However, since there is no standard color type defined in XSD, you must | ||
specify the `vs:builder` attribute as shown in the following example: | ||
|
||
```xml | ||
<xsd:simpleType name="color" vs:builder="XmlNotepad.ColorBuilder"> | ||
``` | ||
Where the "vs" prefix is bound to the following namespace: | ||
Where the `vs` prefix is bound to the following namespace: | ||
`xmlns:vs="http://schemas.microsoft.com/Visual-Studio-Intellisense"`. | ||
|
||
If you build your own custom editors you will also need to specify the `vs:assembly="FontBuilder, Version=1.0.0.0, | ||
If you build your own custom editors, you will also need to specify the `vs:assembly="FontBuilder, Version=1.0.0.0, | ||
Culture=neutral, PublicKeyToken=007b972e7cff2ded, processorArchitecture=MSIL"` attribute to point to your assembly. XML | ||
Notepad will then load your assembly so it can find the specified types. | ||
|
||
![Colors](../assets/images/colors.jpg) | ||
|
||
When you edit an element of this type a button will appear titled "Color Picker" at the top of the intellisense list and | ||
when you click on this button the WinForms ColorDialog will appear. The resulting color will then be serialized back to | ||
When you edit an element of this type a button titled "Color Picker" will appear at the top of the intellisense list and | ||
and clicking on it will open the WinForms ColorDialog. The resulting color will then be serialized back to | ||
the XML string using the `ColorConverter`. | ||
|
||
You can implement your own builders by implementing `IXmlBuilder `and specifying your full class name in the | ||
You can implement your own builders by implementing `IXmlBuilder` and specifying your full class name in the | ||
`vs:builder` attribute. | ||
|
||
See also [Schemas Dialog](schemas.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
|
||
## Drag/Drop Support | ||
|
||
You can drag and drop nodes from the tree view to move them around inside the document or across documents using | ||
You can drag and drop nodes from the tree view to rearrange them within the document or more them across documents using | ||
multiple instances of XML Notepad. (Note: You can easily create a new instance of XML Notepad by selecting the | ||
Window/New Window menu item). You can also drag an XML file from Windows Explorer onto XML Notepad as a quick way to | ||
open that file. | ||
Window/New Window menu item). Additionally, you can drag an XML file from Windows Explorer onto XML Notepad as a quick | ||
way to open that file. | ||
|
||
When you Drag/Drop nodes across programs, it uses the same text format as [Cut/Copy/Paste](clipboard.md). | ||
When you drag and drop nodes across programs, it uses the same text format as [Cut/Copy/Paste](clipboard.md). | ||
|
||
When dragging the selected element a shadow node will appear in the tree that moves with the cursor showing you where | ||
the node will be moved to. In the example below, the "Street" element is being dragged to a new location after the | ||
As you drag the selected element, a shadow node will appear in the tree, moving with the cursor to indicate where | ||
the node will be placed. In the example below, the "Street" element is being dragged to a new location after the | ||
"First" element and before the "Middle" element: | ||
|
||
![DragDrop](../assets/images/dragdrop.jpg) | ||
|
||
When you hover the mouse over a collapsed node it is automatically expanded just in case you are trying to drop the node | ||
inside that collapsed container and conversely, when you hover over an expanded node it is automatically collapsed so | ||
that you can easily find nodes above or below that container. | ||
When hovering the mouse over a collapsed node, automatically expands to facilitate dropping the node inside that | ||
collapsed container. Conversely, when hovering over an expanded node, it automatically collapses, aiding in finding | ||
nodes above or below that container. | ||
|
||
Dragging is a move operation by default, even across XML Notepad instances, which means if you drag a node from one XML | ||
Notepad instance to another it will be removed from the first instance. If you want to perform a copy operation, hold | ||
down the CONTROL key. | ||
By default, dragging is a move operation, even across XML Notepad instances, meaning if you drag a node from one XML | ||
Notepad instance to another, it will be removed from the first instance. If you wish to perform a copy operation | ||
instead, hold down the CONTROL key. | ||
|
||
See [Keyboard](keyboard.md) for more information. | ||
See [Keyboard](keyboard.md) for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,38 @@ | ||
## XML Notepad File Association | ||
|
||
See the following video that shows how to associate XML Notepad with various .xml file types: | ||
Watch the following video tutorial to learn how to associate XML Notepad with various .xml file types: | ||
|
||
[Youtube Video](https://youtu.be/n-6sSUSlN34) | ||
[YouTube Video](https://youtu.be/n-6sSUSlN34) | ||
|
||
The general approach that works is to do the following: | ||
Here's a step-by-step guide: | ||
|
||
1. Open the XML Notepad that you installed already. | ||
2. Select Help/Open Sample... and select "Hamlet.xml" | ||
3. You will see a long file path in the address bar like this: | ||
1. Open XML Notepad, which you have already installed. | ||
2. Navigate to Help > Open Sample... and select "Hamlet.xml". | ||
3. Note the long file path displayed in the address bar, such as: | ||
|
||
> C:\Program Files\WindowsApps\43906ChrisLovett.XmlNotepad_2.9.0.5_neutral__hndwmj480pefj\Application\Samples\Hamlet.xml | ||
``` | ||
C:\Program Files\WindowsApps\43906ChrisLovett.XmlNotepad_2.9.0.5_neutral__hndwmj480pefj\Application\Samples\Hamlet.xml | ||
``` | ||
|
||
If you open this path in Windows Explorer you can locate XmlNotepad.exe here: | ||
|
||
> C:\Program Files\WindowsApps\43906ChrisLovett.XmlNotepad_2.9.0.5_neutral__hndwmj480pefj\Application\XmlNotepad.exe | ||
``` | ||
C:\Program Files\WindowsApps\43906ChrisLovett.XmlNotepad_2.9.0.5_neutral__hndwmj480pefj\Application\XmlNotepad.exe | ||
``` | ||
Copy this path to the clipboard. | ||
|
||
Now use the start menu to find the "Default apps" settings dialog. | ||
|
||
Enter the file type at the top (e.g. type in ".xsd" or ".xslt"), then click the button labelled `+ Choose a default`. | ||
|
||
Scroll to the bottom of this dialog and click `Choose an app on your PC` | ||
|
||
And paste in the path you coped to the clipboard earlier. Click `Open` then click `Set Default`. | ||
Now, follow these steps: | ||
- Open the "Default apps" settings dialog using the start menu. | ||
- Enter the file type at the top (e.g., type in ".xsd" or ".xslt"). | ||
- Click the button labeled `+ Choose a default`. | ||
- Scroll to the bottom of this dialog and click `Choose an app on your PC`. | ||
- Paste in the path you copied to the clipboard earlier. | ||
- Click `Open`, then click `Set Default`. | ||
|
||
As soon as you do this the icon on the file type you associated should change in Windows Explorer showing the XML | ||
Notepad icon and when you double click the file it will automatically open XML Notepad. | ||
As soon as you do this, the icon on the file type you associated should change in Windows Explorer showing the XML | ||
Notepad icon, and when you double click the file, it will automatically open XML Notepad. | ||
|
||
Note that when you have done one extension, all the other extensions are much easier because XML Notepad will now show | ||
up in the list of possible apps to choose. | ||
|
||
The path you have registered here is version specific so you may have to repeat this process when you install new | ||
versions of XML Notepad. | ||
Keep in mind that the path you have registered here is version specific, so you may have to repeat this process when you | ||
install new versions of XML Notepad. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
|
||
## Find/Replace | ||
|
||
The "Find..." item under the [Edit Menu](menus.md) (CTRL+F) brings up the following dialog: | ||
Selecting the "Find..." item under the [Edit Menu](menus.md) (CTRL+F) opens the following dialog: | ||
|
||
![Find](../assets/images/find.png) | ||
|
||
The "Replace..." item under the [Edit Menu](menus.md) (CTRL+H) changes this dialog to show the extra replace fields: | ||
Choosing "Replace..." item under the [Edit Menu](menus.md) (CTRL+H) modifies this dialog to display additional replace | ||
fields: | ||
|
||
![Find](../assets/images/replace.png) | ||
|
||
By default this dialog will allow you to search "Everything" in the current XML document with a given find string. You | ||
can limit the search in the following ways: | ||
By default this dialog will allow you to search "Everything" in the current XML document with a specified find string. | ||
You can refine the search using the following options: | ||
|
||
**Match case**: This will only find nodes that contain the exact search string in the same case. | ||
**Match case**: Only find nodes that contain the exact search string in the same case. | ||
|
||
**Match whole word**: this will only find nodes that contain the search string as a complete word, i.e., not a | ||
**Match whole word**: Only find nodes that contain the search string as a complete word, i.e., not a | ||
substring. | ||
|
||
**Use Regular Expressions**: this will treat the find string as a regular expression. See .NET regular expressions for | ||
**Use Regular Expressions**: Treats the find string as a regular expression. See .NET regular expressions for | ||
help with the regular expression language. | ||
|
||
**Use XPath**: this option allows you to find nodes using an XPath expression. When you choose this option an extra | ||
table appears where you can edit the namespace prefix mappings used in the XPath expression. See [XPath | ||
**Use XPath**: Allows you to find nodes using an XPath expression. Choosing this option reveals an extra table | ||
where you can edit the namespace prefix mappings used in the XPath expression. See [XPath | ||
Syntax](https://docs.microsoft.com/en-us/previous-versions/dotnet/netframework-4.0/ms256471(v=vs.100)?redirectedfrom=MSDN) | ||
for help with the XPath expression language. | ||
|
||
![Find](../assets/images/findxpath.png) | ||
|
||
**Search Filter**: this option allows you to limit the search to just "Names" which means only search node names, or | ||
**Search Filter**: Limits the search to just "Names" which means only search node names, or | ||
"Text" which means only search node values, or "Comments" which means only search comment nodes. | ||
|
||
**Direction**: this allows you to search backwards from the current location in the document ("Up") or forwards | ||
("Down"). | ||
**Direction**: Determines the search direction: "Up" (backwards from the current location) or "Down" (forwards). | ||
|
||
**Find Next**: this button finds the next matching node in the specified direction after the currently selected node and | ||
it highlights the matching substring within the node name or value. | ||
**Find Next**: Finds the next matching node in the specified direction after the currently selected node and | ||
highlights the matching substring within the node name or value. | ||
|
||
**Replace**: this button finds the next matching node in the specified direction after the currently selected node and | ||
if it finds something it replaces it with the replace text. | ||
**Replace**: Finds the next matching node in the specified direction after the currently selected node and | ||
replaces it with the specified replace text. | ||
|
||
**Replace All**: this button replaces all matching text with the replace text. | ||
**Replace All**: Replaces all matching text with the specified replace text. |
Oops, something went wrong.