Skip to content

Commit

Permalink
Generate about.html, info.htm and uncomment languages due of issues
Browse files Browse the repository at this point in the history
info.xml - Metadata that cannot be derived from the Visual Studio Code
extensions (e.g. links about the language/format in general or whether
the language should be excluded due of issues or other reasons)

Files generated:
* about.html - Lists which files have been taken from where
* info.html - List of supported languages and formats
  • Loading branch information
howlger committed Apr 28, 2022
1 parent ce2a0cc commit bb9d290
Show file tree
Hide file tree
Showing 9 changed files with 709 additions and 47 deletions.
47 changes: 47 additions & 0 deletions de.agilantis.language_pack/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>About</title>
<style>
table {
border-spacing: 0;
border-collapse: collapse;
}
th, td {
border: 1px solid #dbe1e6;
padding: 6px 13px;
text-align: left;
vertical-align: top;
}
</style>
</head>
</head>
<body>

<h2>About This Content</h2>

<p>
The following <a href="https://en.wikipedia.org/wiki/TextMate#Language_Grammars">TextMate grammar</a> and
<a href="https://code.visualstudio.com/api/language-extensions/language-configuration-guide">language configuration</a>
files have been taken and slightly modified from the
<a href="https://github.com/microsoft/vscode/tree/main/extensions">Visual Studio Code's built-in extensions</a>.
Most of the grammar files were in turn converted by the Visual Studio Code project from other projects
(see column <i>Original</i>).
</p>

<table>
<tr>
<th rowspan="2">File</th>
<th colspan="3">Taken from ...</th>
</tr>
<tr>
<th>Extension</th>
<th>File</th>
<th>Original</th>
<tr>
<!-- INSERT TABLE CONTENT HERE -->
</table>

</body>
</html>
32 changes: 32 additions & 0 deletions de.agilantis.language_pack/info.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Supported languages and formats</title>
<style>
table {
border-spacing: 0;
border-collapse: collapse;
}
th, td {
border: 1px solid #dbe1e6;
padding: 6px 13px;
text-align: left;
vertical-align: top;
}
</style>
</head>
<body>

<h2>Supported languages and formats</h2>

<table>
<tr>
<th>Language/Format</th>
<th>File Associations</th>
<tr>
<!-- INSERT TABLE CONTENT HERE -->
</table>

</body>
</html>
222 changes: 222 additions & 0 deletions info.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
<!--
Wikidata item IDs, links and issues
The Wikidata item ID (wikidata="...") can be used to get the wikipedia link, translated name and more
(see <https://www.wikidata.org/w/api.php?action=help&modules=wbgetentities>):
- Wikipedia article:
https://www.wikidata.org/w/api.php?action=wbgetentities&format=xml&props=sitelinks&ids=Q575650&sitefilter=enwiki
- Translations of the name/label:
https://www.wikidata.org/w/api.php?action=wbgetentities&format=xml&props=labels&ids=Q575650&languages=en|de
- File extensions (P1195), official website (P856), Stack Overflow tag (P1482), etc.:
https://www.wikidata.org/w/api.php?action=wbgetentities&format=xml&props=claims&ids=Q479833
-> api/entities/entity/claims/property[@id='P1195']/claim/mainsnak/datavalue[@type='string']/@value
Get Wikidata item ID by Wikipedia article:
https://en.wikipedia.org/w/api.php?action=query&format=xml&prop=pageprops&ppprop=wikibase_item&redirects=1&titles=CSS
-->
<info>
<extension id="bat">
<language name="Batch" better-name="Batch File" wikidata="Q479833"/>
</extension>
<extension id="clojure">
<language name="Clojure" wikidata="Q51798"/>
</extension>
<extension id="coffeescript">
<language name="CoffeeScript" wikidata="Q1106819"/>
</extension>
<extension id="cpp">
<language name="C" wikidata="Q15777"/>
<language name="C++" wikidata="Q2407"/>
<language name="CUDA C++">
<related wikidata="Q477690"/>
</language>
</extension>
<extension id="csharp">
<language name="C#" wikidata="Q2370"/>
</extension>
<extension id="css">
<language name="CSS" wikidata="Q46441"/>
</extension>
<extension id="dart">
<language name="Dart" wikidata="Q406009"/>
</extension>
<extension id="diff">
<language name="Diff" issues="Theme support required">
<related wikidata="Q300901"/>
</language>
</extension>
<extension id="docker">
<language name="Docker">
<related wikidata="Q15206305"/>
</language>
</extension>
<extension id="fsharp">
<language name="F#" wikidata="Q648619" issues="syntax highlighting broken"/>
</extension>
<extension id="git-base">
<language name="Git Commit Message">
<related wikidata="Q186055"/>
</language>
<language name="Git Rebase Message" issues="syntax highlighting broken">
<related wikidata="Q186055"/>
</language>
<language name="Ignore" better-name="Git Ignore" issues="syntax highlighting broken">
<related wikidata="Q186055"/>
</language>
</extension>
<extension id="go">
<language name="Go" wikidata="Q37227"/>
</extension>
<extension id="groovy">
<language name="Groovy" wikidata="Q504453"/>
</extension>
<extension id="handlebars">
<language name="Handlebars">
<related link="https://handlebarsjs.com/"/>
<related link="https://en.wikipedia.org/wiki/Mustache_(template_system)#Handlebars"/>
<related wikidata="Q17070290"/>
</language>
</extension>
<extension id="hlsl">
<language name="HLSL" better-name="High-Level Shader Language" wikidata="Q559519"/>
</extension>
<extension id="html">
<language name="HTML" wikidata="Q8811"/>
</extension>
<extension id="ini">
<language name="Ini" wikidata="Q1141412"/>
<language name="Properties" wikidata="Q1068805"
ignore="Properties File Editor included in Eclipse platform"
issues="overridden by Properties File Editor"/>
</extension>
<extension id="java">
<language name="Java" wikidata="Q251"/>
</extension>
<extension id="javascript">
<language name="JavaScript" wikidata="Q2005"/>
<language name="JavaScript React" wikidata="Q19399674"/>
</extension>
<extension id="json">
<language name="JSON" wikidata="Q2063"/>
<language name="JSON with Comments">
<related link="https://code.visualstudio.com/docs/languages/json#_json-with-comments"/>
</language>
</extension>
<extension id="julia">
<language name="Julia" wikidata=""
wikipedia="https://en.wikipedia.org/wiki/Julia_(programming_language)"
website="https://julialang.org/"
/>
</extension>
<extension id="latex">
<language name="TeX" wikidata="Q5301"/>
<language name="LaTeX" wikidata="Q5310" issues="broken syntax highlighting"/>
<language name="BibTeX" wikidata="Q8029"/>
</extension>
<extension id="less">
<language name="Less" wikidata="Q1107192"/>
</extension>
<extension id="log">
<language name="Log" issues="broken, maybe because of file extension: *.log.?">
<related link="https://github.com/emilast/vscode-logfile-highlighter#features"/>
</language>
</extension>
<extension id="lua">
<language name="Lua" wikidata="Q207316"/>
</extension>
<extension id="make">
<language name="Makefile">
<related link="https://github.com/emilast/vscode-logfile-highlighter#features"/>
<related wikidata="Q300867"/>
</language>
</extension>
<extension id="markdown-basics">
<language name="Markdown" wikidata="Q1193600" issues="completly broken"/>
</extension>
<extension id="objective-c">
<language name="Objective-C" wikidata="Q188531"/>
<language name="Objective-C++">
<related link="https://en.wikipedia.org/wiki/Objective-C#Objective-C++"/>
<related wikidata="Q188531"/>
</language>
</extension>
<extension id="perl">
<language name="Perl" wikidata="Q42478"/>
<language name="Perl 6">
<related link="https://en.wikipedia.org/wiki/Perl#Raku_(Perl_6)"/>
<related wikidata="Q42478"/>
</language>
</extension>
<extension id="php">
<language name="PHP" wikidata="Q59" issues="java.io.FileNotFoundException: /php/language-configuration.json"/>
</extension>
<extension id="powershell">
<language name="PowerShell" wikidata="Q840410"/>
</extension>
<extension id="pug">
<language name="Pug">
<related link="https://pugjs.org/api/getting-started.html"/>
</language>
</extension>
<extension id="python">
<language name="Python" wikidata="Q28865"/>
</extension>
<extension id="r">
<language name="R" wikidata="Q206904"/>
</extension>
<extension id="razor">
<language name="Razor" better-name="ASP.NET Razor" wikidata="Q6840077"/>
</extension>
<extension id="restructuredtext">
<language name="reStructuredText" wikidata="Q287315" issues="syntax highlighting broken"/>
</extension>
<extension id="ruby">
<language name="Ruby" wikidata="Q161053" issues="syntax highlighting broken"/>
</extension>
<extension id="rust">
<language name="Rust" wikidata="Q575650"/>
</extension>
<extension id="scss">
<language name="SCSS" wikidata="Q1572865"/>
</extension>
<extension id="search-result">
<language name="Search Result" better-name="VS Code Search Result" issues="syntax highlighting broken"/>
</extension>
<extension id="shaderlab">
<language name="ShaderLab">
<related link="https://docs.unity3d.com/2019.3/Documentation/Manual/SL-Shader.html"/>
</language>
</extension>
<extension id="shellscript">
<language name="Shell Script" issues="syntax highlighting broken">
<related wikidata="Q189248"/>
</language>
</extension>
<extension id="sql">
<language name="SQL" wikidata="Q47607"/>
</extension>
<extension id="swift">
<language name="Swift" wikidata="Q17118377"/>
</extension>
<extension id="typescript-basics">
<language name="TypeScript" wikidata="Q978185"/>
<language name="TypeScript React">
<related link="https://www.typescriptlang.org/docs/handbook/react.html"/>
<related wikidata="Q978185"/>
</language>
</extension>
<extension id="vb">
<language name="Visual Basic" better-name="Visual Basic .NET" wikidata="Q50077"/>
</extension>
<extension id="xml">
<language name="XML" wikidata="Q2115" issues="syntax highlighting broken"/>
<language name="XSL" wikidata="Q32061" issues="java.lang.IllegalArgumentException: "/>
</extension>
<extension id="yaml">
<language name="YAML" wikidata="Q281876"/>
<language name="Compose" better-name="Docker Compose" issues="overridden by the more general YAML">
<related link="https://docs.docker.com/compose/"/>
</language>
</extension>
</info>
Loading

0 comments on commit bb9d290

Please sign in to comment.