Skip to content

Commit

Permalink
Add new File/Open XmlDiff Styles menu item so you can edit the CSS st…
Browse files Browse the repository at this point in the history
…yles for the XmlDiff output window.

Delete the file to reset back to the original styles.
The files lives in %LOCALAPPDATA%\Microsoft\Xml Notepad\XmlDiffStyles.css.
Fix Schema dialog row copy so it gives you a valid xsi:schemaLocation value
  • Loading branch information
clovett committed Sep 29, 2023
1 parent 7f25cc1 commit c47d66e
Show file tree
Hide file tree
Showing 11 changed files with 464 additions and 331 deletions.
3 changes: 3 additions & 0 deletions docs/help/menus.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ The file menu contains the following commands:
- **New** Start a new XML document.
- **Open** Open an XML document for editing. Can also open .csv and .htm files converting them to XML.
- **Reload** Discard any edits you've made and reload the file as it exists on disk.
- **Open Xml Settings...** Opens the current XmlNotepad.settings file in Xml Notepad.
- **Open XmlDiff Styles...** Opens the XmlDiffStyles.css file in your text editor so you
can change the appearence of the XmlDiff output window. Delete the file to reset back to the original styles. The files lives in %LOCALAPPDATA%\Microsoft\Xml Notepad\XmlDiffStyles.css.
- **Save** Save any edits you've made to the file disk.
- **Save As** Save the current document to a different file name on disk.
- **Export Errors** Save the contents of the Error List in an XML format.
Expand Down
68 changes: 46 additions & 22 deletions src/Application/Application.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@
<ApplicationIcon>Resources\XmlNote.ico</ApplicationIcon>
<StartupObject>XmlNotepad.Program</StartupObject>
<AssemblyOriginatorKeyFile>$(MyKeyFile)</AssemblyOriginatorKeyFile>
<FileUpgradeFlags></FileUpgradeFlags>
<UpgradeBackupLocation></UpgradeBackupLocation>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<OldToolsVersion>3.5</OldToolsVersion>
<TargetFrameworkProfile />
<IsWebBootstrapper>false</IsWebBootstrapper>
<NuGetPackageImportStamp></NuGetPackageImportStamp>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<PublishUrl>..\..\publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
Expand All @@ -38,6 +41,8 @@
<PublisherName>Chris Lovett</PublisherName>
<WebPage>readme.htm</WebPage>
<DisallowUrlActivation>true</DisallowUrlActivation>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>2.9.0.6</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled>
Expand Down Expand Up @@ -69,7 +74,8 @@
<ManifestCertificateThumbprint>50D58171E20BB6188B199ACA7C20A26DA0DFBF35</ManifestCertificateThumbprint>
</PropertyGroup>
<PropertyGroup>
<ManifestTimestampUrl></ManifestTimestampUrl>
<ManifestTimestampUrl>
</ManifestTimestampUrl>
</PropertyGroup>
<PropertyGroup>
<GenerateManifests>true</GenerateManifests>
Expand Down Expand Up @@ -173,12 +179,14 @@
<Compile Include="FormSearch.Designer.cs">
<DependentUpon>FormSearch.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs"></Compile>
<Compile Include="Program.cs">
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="XmlDiffWrapper.cs" />
<EmbeddedResource Include="FormGotoLine.resx">
<DependentUpon>FormGotoLine.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Resources\XmlReportStyles.css" />
<EmbeddedResource Include="Resources\XmlDiffStyles.css" />
<EmbeddedResource Include="FormAbout.resx">
<DependentUpon>FormAbout.cs</DependentUpon>
<SubType>Designer</SubType>
Expand Down Expand Up @@ -301,64 +309,80 @@
<ItemGroup>
<PublishFile Include="Samples\basket.xml">
<Visible>False</Visible>
<Group></Group>
<TargetPath></TargetPath>
<Group>
</Group>
<TargetPath>
</TargetPath>
<PublishState>Include</PublishState>
<IncludeHash>True</IncludeHash>
<FileType>File</FileType>
</PublishFile>
<PublishFile Include="Samples\basket.xsd">
<Visible>False</Visible>
<Group></Group>
<TargetPath></TargetPath>
<Group>
</Group>
<TargetPath>
</TargetPath>
<PublishState>Include</PublishState>
<IncludeHash>True</IncludeHash>
<FileType>File</FileType>
</PublishFile>
<PublishFile Include="Samples\Employee.xml">
<Visible>False</Visible>
<Group></Group>
<TargetPath></TargetPath>
<Group>
</Group>
<TargetPath>
</TargetPath>
<PublishState>Include</PublishState>
<IncludeHash>True</IncludeHash>
<FileType>File</FileType>
</PublishFile>
<PublishFile Include="Samples\Employee.xsd">
<Visible>False</Visible>
<Group></Group>
<TargetPath></TargetPath>
<Group>
</Group>
<TargetPath>
</TargetPath>
<PublishState>Include</PublishState>
<IncludeHash>True</IncludeHash>
<FileType>File</FileType>
</PublishFile>
<PublishFile Include="Samples\Hamlet.xml">
<Visible>False</Visible>
<Group></Group>
<TargetPath></TargetPath>
<Group>
</Group>
<TargetPath>
</TargetPath>
<PublishState>Include</PublishState>
<IncludeHash>True</IncludeHash>
<FileType>File</FileType>
</PublishFile>
<PublishFile Include="Samples\rss.xml">
<Visible>False</Visible>
<Group></Group>
<TargetPath></TargetPath>
<Group>
</Group>
<TargetPath>
</TargetPath>
<PublishState>Include</PublishState>
<IncludeHash>True</IncludeHash>
<FileType>File</FileType>
</PublishFile>
<PublishFile Include="Samples\rsspretty.xsl">
<Visible>False</Visible>
<Group></Group>
<TargetPath></TargetPath>
<Group>
</Group>
<TargetPath>
</TargetPath>
<PublishState>Include</PublishState>
<IncludeHash>True</IncludeHash>
<FileType>File</FileType>
</PublishFile>
<PublishFile Include="Samples\willy.xsl">
<Visible>False</Visible>
<Group></Group>
<TargetPath></TargetPath>
<Group>
</Group>
<TargetPath>
</TargetPath>
<PublishState>Include</PublishState>
<IncludeHash>True</IncludeHash>
<FileType>File</FileType>
Expand Down
9 changes: 9 additions & 0 deletions src/Application/FormMain.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c47d66e

Please sign in to comment.