Argdown is a simple syntax for analyzing argumentation, inspired by Markdown. This extension provides the following features for Argdown:
- Syntax highlighting
- Linting
- Html, Dot and JSON Export
The extension is still in its alpha phase. More features and better documentation will be added over time.
For more information about the Argdown argumentation syntax visit the central Argdown repository.
Standard themes do not highlight Argdown attack and support relations. For complete syntax highlighting, please activate the Argdown theme:
- Go to
Code/Preferences/Color Theme
in the main application menu - Select
Argdown Theme
from the list of available themes
The Argdown theme is the default VS Code light theme, enhanced by some Argdown-specific features, so it will also work with other languages.
We hope that VS Code will add support for language-specific themes in the future, so that the Argdown theme will only be active for Argdown files.
The extension contributes four new commands to the command palette:
- 'Argdown: Export Argdown files to HTML'
- 'Argdown: Export Argdown files to JSON'
- 'Argdown: Export Argdown files to Dot'
- 'Argdown: Run Argdown parser with config file'
To access these commands, open the command palette (CTRL + Shift + P
on Windows/Linux or CMD + Shift + P
on OSX), type in Argdown and select the command you want to execute.
By default the export commands will export all Argdown files in each workspace folder. To configure which files to export or at which path you want to save the exported files, you can change the Argdown settings (see below).
In the future, we will try to integrate these exports commands into the general user interfacen and add additional export options.
Basic configuration options are available directly in the VS Code preferences. For advanced configuration you can use a argdown.config.js
file.
If you do not want to export all Argdown files in the workspace, you can select the files to export by using a file "glob" selector in the VS Code settings. VS Code allows you to define globals settings, settings for the current workspace or settings for the current workspace folder. To change the settings for the current folder, do the following:
- Open the preferences by selecting
Code/Preferences/Settings
from the main application menu or by pressingCTRL + ,
on Windows/Linux orCMD + ,
on OSX. - On the right side you can define your settings. Select the folder settings tab.
- Add the following setting to only export
.argdown
files in theargdown
folder to HTML: "argdown.htmlExportInput: argdown/*.argdown"
For selecting which files to export to Dot or JSON, use argdown.dotExportInput
and argdown.jsonExportInput
.
By default, HTML files are saved in a ./html
folder, json files in a ./dot
folder and JSON files in a ./json
folder. To export all files to an export
directory, do the following:
- Open the preferences by selecting
Code/Preferences/Settings
from the main application menu or by pressingCTRL + ,
on Windows/Linux orCMD + ,
on OSX. - On the right side you can define your settings. Select the folder settings tab.
- Add: "argdown.htmlDirectory: export"
- Add: "argdown.dotDirectory: export"
- Add: "argdown.jsonDirectory: export"
You can create argdown.config.js
files in your workspace folders to change the way the Argdown commands are executed. Using config files you can achieve anything you can do with the Argdown Commandline Interface.
Visit the config documentation at the central Argdown repository to learn more about the format of the config file.