├── art ├── intellisense.png └── validation.png ├── src ├── Resources │ └── Icon.png ├── Completion │ ├── icon.png │ ├── ElementCompletion.cs │ ├── AttributeValueCompletion.cs │ ├── AttributeCompletion.cs │ └── CompletionBase.cs ├── Schema │ ├── IHtmlItem.cs │ ├── HtmlElement.cs │ ├── HtmlAttribute.cs │ ├── HtmlCache.cs │ └── schema.json ├── Properties │ └── AssemblyInfo.cs ├── packages.config ├── Shared │ └── HtmlHelper.cs ├── Validation │ ├── StyleValidator.cs │ └── AttributeValidator.cs ├── source.extension.vsixmanifest └── GoogleAmpSchema.csproj ├── lib ├── Microsoft.Html.Core.dll ├── Microsoft.Web.Core.dll ├── Microsoft.Html.Editor.dll └── Microsoft.Web.Editor.dll ├── .gitignore ├── .github ├── ISSUE_TEMPLATE.md └── CONTRIBUTING.md ├── .gitattributes ├── LICENSE ├── appveyor.yml ├── CHANGELOG.md ├── GoogleAmpSchema.sln └── README.md /art/intellisense.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madskristensen/GoogleAmpSchema/master/art/intellisense.png -------------------------------------------------------------------------------- /art/validation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madskristensen/GoogleAmpSchema/master/art/validation.png -------------------------------------------------------------------------------- /src/Resources/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madskristensen/GoogleAmpSchema/master/src/Resources/Icon.png -------------------------------------------------------------------------------- /src/Completion/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madskristensen/GoogleAmpSchema/master/src/Completion/icon.png -------------------------------------------------------------------------------- /lib/Microsoft.Html.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madskristensen/GoogleAmpSchema/master/lib/Microsoft.Html.Core.dll -------------------------------------------------------------------------------- /lib/Microsoft.Web.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madskristensen/GoogleAmpSchema/master/lib/Microsoft.Web.Core.dll -------------------------------------------------------------------------------- /lib/Microsoft.Html.Editor.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madskristensen/GoogleAmpSchema/master/lib/Microsoft.Html.Editor.dll -------------------------------------------------------------------------------- /lib/Microsoft.Web.Editor.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madskristensen/GoogleAmpSchema/master/lib/Microsoft.Web.Editor.dll -------------------------------------------------------------------------------- /src/Schema/IHtmlItem.cs: -------------------------------------------------------------------------------- 1 | namespace GoogleAmpSchema 2 | { 3 | public interface IHtmlItem 4 | { 5 | string Name { get; set; } 6 | string Description { get; set; } 7 | string Type { get; set; } 8 | } 9 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | packages 2 | 3 | # User files 4 | *.suo 5 | *.user 6 | *.sln.docstates 7 | .vs/ 8 | 9 | # Build results 10 | [Dd]ebug/ 11 | [Rr]elease/ 12 | x64/ 13 | [Bb]in/ 14 | [Oo]bj/ 15 | 16 | # MSTest test Results 17 | [Tt]est[Rr]esult*/ 18 | [Bb]uild[Ll]og.* 19 | 20 | # NCrunch 21 | *.ncrunchsolution 22 | *.ncrunchproject 23 | _NCrunch_WebCompiler -------------------------------------------------------------------------------- /src/Schema/HtmlElement.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace GoogleAmpSchema 4 | { 5 | class HtmlElement : IHtmlItem 6 | { 7 | public string Name { get; set; } 8 | 9 | public string Description { get; set; } 10 | 11 | public string Type { get; set; } 12 | 13 | public IEnumerable Attributes { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ### Installed product versions 2 | - Visual Studio: [example 2015 Professional] 3 | - This extension: [example 1.1.21] 4 | 5 | ### Description 6 | Replace this text with a short description 7 | 8 | ### Steps to recreate 9 | 1. Replace this 10 | 2. text with 11 | 3. the steps 12 | 4. to recreate 13 | 14 | ### Current behavior 15 | Explain what it's doing and why it's wrong 16 | 17 | ### Expected behavior 18 | Explain what it should be doing after it's fixed. -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | *.sln merge=union 7 | *.csproj merge=union 8 | *.vbproj merge=union 9 | *.fsproj merge=union 10 | *.dbproj merge=union 11 | 12 | # Standard to msysgit 13 | *.doc diff=astextplain 14 | *.DOC diff=astextplain 15 | *.docx diff=astextplain 16 | *.DOCX diff=astextplain 17 | *.dot diff=astextplain 18 | *.DOT diff=astextplain 19 | *.pdf diff=astextplain 20 | *.PDF diff=astextplain 21 | *.rtf diff=astextplain 22 | *.RTF diff=astextplain 23 | -------------------------------------------------------------------------------- /src/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //using System.Reflection; 2 | //using System.Runtime.InteropServices; 3 | 4 | //[assembly: AssemblyTitle("GoogleAmpSchema")] 5 | //[assembly: AssemblyDescription("")] 6 | //[assembly: AssemblyConfiguration("")] 7 | //[assembly: AssemblyCompany("")] 8 | //[assembly: AssemblyProduct("GoogleAmpSchema")] 9 | //[assembly: AssemblyCopyright("")] 10 | //[assembly: AssemblyTrademark("")] 11 | //[assembly: AssemblyCulture("")] 12 | 13 | //[assembly: ComVisible(false)] 14 | 15 | //[assembly: AssemblyVersion("1.0.0.0")] 16 | //[assembly: AssemblyFileVersion("1.0.0.0")] 17 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2016 Mads Kristensen 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. -------------------------------------------------------------------------------- /src/Schema/HtmlAttribute.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace GoogleAmpSchema 4 | { 5 | public class HtmlAttribute : IHtmlItem 6 | { 7 | public string Name { get; set; } 8 | 9 | public string Description { get; set; } 10 | 11 | public string Type { get; set; } 12 | 13 | public string Require { get; set; } 14 | 15 | public bool Required { get; set; } 16 | 17 | public IEnumerable Values { get; set; } 18 | 19 | public override string ToString() 20 | { 21 | return Name; 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- 1 | image: Visual Studio 2017 2 | 3 | install: 4 | - ps: (new-object Net.WebClient).DownloadString("https://raw.github.com/madskristensen/ExtensionScripts/master/AppVeyor/vsix.ps1") | iex 5 | 6 | before_build: 7 | - ps: Vsix-IncrementVsixVersion | Vsix-UpdateBuildVersion 8 | #- ps: Vsix-TokenReplacement src\source.extension.cs 'Version = "([0-9\\.]+)"' 'Version = "{version}"' 9 | 10 | build_script: 11 | - nuget restore -Verbosity quiet 12 | - msbuild /p:configuration=Release /p:DeployExtension=false /p:ZipPackageCompressionLevel=normal /v:m 13 | 14 | after_test: 15 | - ps: Vsix-PushArtifacts | Vsix-PublishToGallery 16 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Road map 2 | 3 | - [ ] Add missing descriptions to attributes 4 | - [ ] More validation rules 5 | 6 | Features that have a checkmark are complete and available for 7 | download in the 8 | [CI build](http://vsixgallery.com/extension/89e66607-5b1d-43a4-8da0-286801f8f60a/). 9 | 10 | # Change log 11 | 12 | These are the changes to each version that has been released 13 | on the official Visual Studio extension gallery. 14 | 15 | ## 1.1 16 | 17 | - [x] Validation for `