2023-11-18 01:46:10 +01:00
2023-11-15 21:06:08 +01:00
2023-11-13 20:24:59 +01:00
2023-11-15 20:05:24 +01:00
2023-11-18 01:46:10 +01:00
2023-11-18 01:46:10 +01:00
2023-11-15 20:05:24 +01:00
2023-11-18 01:46:10 +01:00
2023-11-15 21:20:09 +01:00

Contra

The Contra utility converts so called the "C Style Markup Language" to HTML/XML and back. The primary aim is to maximize both editability and readability by dynamizing the markup representation.

The Contra utility itself is meant to serve as a backbone for other tools, such as text editor or IDE extensions.

See documentation/* for the exact details or follow this README for a quick-start.

Example

// TODO

Installantion

For any of the below plugins to work, the Contra executable will have to be installed on your system.

Build from source

Contra is written in C, it must be compiled.

Make sure you have the following dependencies:

  • a C compiler (e.g. gcc)
  • Make (e.g. GNU Make)
  • Flex

After navigating to the root directory, run:

$ make

This will result in a new executable file called contra, place it in your $PATH. The easiest way to do so is by running:

$ make install

Vim

Place the file "plugin/contra.vim" inside "~/.vim/plugin/". You might have to create the directory yourself. Or, assuming your setup actually matches with the above, you could run:

$ make vim_install

Visual Studio Code

The VS Code extension is written in TypeScript, so it has to be compiled too. This will require a million node modules. You are advised to run:

$ make code_install
Description
No description provided
Readme 966 KiB
Languages
C++ 49.9%
Lex 23.7%
TypeScript 11.3%
HTML 6.4%
Makefile 4.8%
Other 3.9%