
keyingress Syntax-Highlighting für Visual Studio Code
Article in English (see below)
Diese Erweiterung wurde speziell für keyingress entwickelt – eine professionelle Umfrage-Software zur Erstellung, Verwaltung und Durchführung von Befragungen.
Das Plugin erweitert Visual Studio Code um ein speziell angepasstes Syntax-Highlighting für keyingress-Fragebogenskripte.
Ziel der Erweiterung ist es, das Arbeiten im Skriptmodus deutlich zu vereinfachen: Durch die strukturierte farbliche Hervorhebung von Befehlen, Fragetypen, Variablen und logischen Elementen werden auch umfangreiche und komplexe Fragebögen übersichtlicher.
Darüber hinaus unterstützt das Plugin die eigens für keyingress entwickelte plain2form-Syntax, die eine effiziente und strukturierte Erstellung von Fragebögen ermöglicht. Damit eignet sich die Erweiterung sowohl zum komfortablen Lesen bestehender Skripte als auch zur Neuerstellung und Weiterentwicklung von Fragebögen.
Funktionen
- Syntax-Highlighting für keyingress-Fragebogenskripte (plain2form)
- Verbesserte Lesbarkeit und Struktur im Skriptmodus
- Hervorhebung von Fragetypen (
single, multiple, input, rating, ranking, table, ...) Attributen, Logik (z. B. jump, showif, ...) und Variablen/Platzhaltern (%...%)
Verwendung
- Öffne eine plain2form-Datei (z. B.
*.plain2form.txt) oder wähle in VS Code den Sprachmodus plain2form.
- Aktiviere eines der mitgelieferten Theme (Dark, Dark HC, Light), um die Hervorhebungen optimal zu sehen.
⬇️ Download Beispiel
/*
Der Starttext/Intro wird außerhalb des Fragebogens definiert.
*/
// Einzelauswahlfrage
[single]
Kennen Sie die Multichannel-Umfragesoftware <b>keyingress</b>?
- ja
- nein [jump: SCREENOUT] // Interview beenden → ScreenOut-Text anzeigen
// Mehrfachauswahlfrage
[multiple;
name: Modules]
Mit welchem der folgenden Module haben Sie bereits gearbeitet?
- webingress
Online-Umfragen [name: workedWith_webingress]
- mailingress
Online mit E-Mail-Einladung [name: workedWith_mailingress]
- callingress
CATI/Telefonbefragungen [name: workedWith_callingress]
- mobilingress
Offline/Face 2 Face [name: workedWith_mobilingress]
- panelingress
Online-Panels [name: workedWith_panelingress]
- Dashboard [name: workedWith_dashboard]
- mit keinem Modul gearbeitet [exclusive; name: notWorked]
// Offene Frage
[input;
// Frage nur anzeigen, wenn "mit keinem Modul gearbeitet" ausgewählt wurde
showif: notWorked == 1]
Warum haben Sie noch <b>nicht mit keyingress</b> gearbeitet?
- [input: m]
// Ratingfrage/Skalenfrage
[rating: Zufriedenheit (1, 2, 3, 4, 5, weiß nicht)
: Häufigkeit (häufig, nicht so häufig, gar nicht);
// Frage nur anzeigen, wenn mindestens ein Modul in Frage "Modules" ausgewählt wurde
showif: ModulesA1 + ModulesA2 + ModulesA3 + ModulesA4 + ModulesA5 + ModulesA6 > 0]
Wie zufrieden sind Sie mit den Modulen von keyingress?
Wie häufig setzen Sie die Module ein?
- webingress [showif: workedWith_webingress == 1]
- mailingress [showif: workedWith_mailingress == 1]
- callingress [showif: workedWith_callingress == 1]
- mobilingress [showif: workedWith_mobilingress == 1]
- panelingress [showif: workedWith_panelingress == 1]
- Dashboard [showif: workedWith_dashboard == 1]
// Aktivierung des Seitenmodus (spätere Verwendung)
// (Darstellung mehrerer Fragen auf einer Seite)
[page: Demografie]
[single]
Bitte geben Sie Ihr Geschlecht an!
- männlich
- weiblich
- sonstiges
[multiple;
// Berechnung der Alterskategorie aus dem Geburtsjahr
set: age_category = CASE WHEN year_of_birth < 1946 THEN 1
WHEN year_of_birth >= 1946 AND year_of_birth <= 1964 THEN 2
WHEN year_of_birth >= 1965 AND year_of_birth <= 1980 THEN 3
WHEN year_of_birth >= 1981 AND year_of_birth <= 1996 THEN 4
WHEN year_of_birth >= 1997 AND year_of_birth <= 2010 THEN 5
ELSE 6 END;
]
Bitte geben Sie Ihr Geburtsjahr an!
- Geburtsjahr [input:s, 3; numeric: >1900 && <=2025; name: year_of_birth; exclusive] (4-stellig)
- keine Angabe [exclusive]
// Frage wird nicht angezeigt, diese dient für die Auswertung/Quoten.
[single;
name: age_category;
showif: false]
- Silent Generation / Silver Ager (vor 1946)
- Baby Boomer (ca. 1946–1964)
- Generation X (ca. 1965–1980)
- Millennials / Generation Y (ca. 1981–1996)
- Generation Z (ca. 1997–2010)
- Generation Alpha (ab ca. 2011/2012)
/*
Der Endtext/Outro wird außerhalb des Fragebogens definiert.
ScreenOut- und QuotaFull-Texte werden auch außerhalb des Fragebogens definiert.
*/
keyingress syntax highlighting for Visual Studio Code
This extension was specially developed for keyingress — a professional survey software for creating, managing and conducting surveys.
The plugin extends Visual Studio Code with tailored syntax highlighting for keyingress questionnaire scripts.
The aim of the extension is to significantly simplify working in script mode: structured color highlighting of commands, question types, variables and logical elements makes even extensive and complex questionnaires clearer.
The extension supports the plain2form syntax developed specifically for keyingress, enabling efficient and structured questionnaire authoring.
Features
- Syntax highlighting for keyingress questionnaire scripts (plain2form)
- Improved readability and structure in script mode
- Highlighting for question types (
single, multiple, input, rating, ranking, table, ...), attributes, logic (e.g. jump, showif, ...) and variables/placeholders (%...%)
Usage
- Open a plain2form file (e.g.
*.plain2form.txt) or set the VS Code language mode to plain2form.
- Enable one of the included themes (Dark, Dark HC, Light) for best results.
⬇️ Download example
/*
The start text/intro is defined outside the questionnaire.
*/
// Single-choice question
[single]
Do you know the multichannel survey software <b>keyingress</b>?
- yes
- no [jump: SCREENOUT] // End interview → Show ScreenOut text
// Multiple-choice question
[multiple;
name: Modules]
Which of the following modules have you already worked with?
- webingress
Online surveys [name: workedWith_webingress]
- mailingress
Online with e-mail invitation [name: workedWith_mailingress]
- callingress
CATI/telephone surveys [name: workedWith_callingress]
- mobilingress
Offline/Face 2 Face [name: workedWith_mobilingress]
- panelingress
Online-Panels [name: workedWith_panelingress]
- Dashboard [name: workedWith_dashbaord]
- did not work with any module [exclusive; name: notWorked]
// Open question
[input;
// Only display question if "did not work with any module" was selected
showif: notWorked == 1]
Why haven’t you worked with <b>keyingress</b> yet?
- [input: m]
// Rating scale question
[rating: Satisfaction (1, 2, 3, 4, 5, don´t know)
: Frequency (often, not so often, not at all);
// Only display question if at least one module has been selected in the "Modules" question
showif: ModulesA1 + ModulesA2 + ModulesA3 + ModulesA4 + ModulesA5 + ModulesA6 > 0]
How satisfied are you with the keyingress modules?
How often do you use the modules?
- webingress [showif: workedWith_webingress == 1]
- mailingress [showif: workedWith_mailingress == 1]
- callingress [showif: workedWith_callingress == 1]
- mobilingress [showif: workedWith_mobilingress == 1]
- panelingress [showif: workedWith_panelingress == 1]
- Dashboard [showif: workedWith_dashbaord == 1]
// Page mode activation
// (Presentation of several questions on one page)
[page: Demography]
[single]
Please enter your gender!
- male
- female
- other
[multiple;
// Calculation of the age category from the year of birth
set: age_category = CASE WHEN year_of_birth < 1946 THEN 1
WHEN year_of_birth >= 1946 AND year_of_birth <= 1964 THEN 2
WHEN year_of_birth >= 1965 AND year_of_birth <= 1980 THEN 3
WHEN year_of_birth >= 1981 AND year_of_birth <= 1996 THEN 4
WHEN year_of_birth >= 1997 AND year_of_birth <= 2010 THEN 5
ELSE 6 END;
]
Please enter your year of birth!
- year of birth [input:s, 3; numeric: >1900 && <=2025; name: year_of_birth; exclusive] (4-digit)
- not specified [exclusive]
// Question is not displayed, this is used for evaluation/quotas.
[single;
name: age_category;
showif: false]
- Silent Generation / Silver Ager (before 1946)
- Baby Boomer (ca. 1946–1964)
- Generation X (ca. 1965–1980)
- Millennials / Generation Y (ca. 1981–1996)
- Generation Z (ca. 1997–2010)
- Generation Alpha (from ca. 2011/2012)
/*
The end text/outro is defined outside the questionnaire.
ScreenOut and QuotaFull texts are also defined outside the questionnaire.
*/