lia-marker for LiaScript: Color-Coded Text Highlighting Quizzes

lia-marker for LiaScript: Color-Coded Text Highlighting Quizzes

Reading comprehension and grammar tasks often require marking specific words or phrases in a text. The lia-marker community plugin by MINT-the-GAP adds a highlighting toolbar to LiaScript courses and a set of quiz macros that automatically check whether the correct words were highlighted in the correct colors.


Quick Start

<!--
import: https://raw.githubusercontent.com/MINT-the-GAP/lia-marker/main/README.md
-->

After importing, a toolbar button appears in the navigation bar for free highlighting. Use the macros below to define graded marker quizzes.


Marker Quiz Macros

@mark and @markCOLOR — Define target words

Use these inline to mark which text the student must highlight, and in which color:

<div class="markerquiz">
@markred(Katze) @markblue(Schritt)
@TextmarkerQuiz
</div>

Use @mark(text) to accept any color; use @markCOLOR(text) to require a specific color.

Available colors: red, blue, green, yellow, pink, orange

@TextmarkerQuiz — Add Check / Solve buttons

Always pair marker targets with @TextmarkerQuiz at the end of the <div class="markerquiz"> block.

@markedCOLOR — Pre-filled highlights (read-only)

Use these to show text pre-highlighted for demonstration purposes:

The **mitochondria** is @markedred(the powerhouse) of @markedblue(the cell).

Example: Language Arts Lesson

<!--
import: https://raw.githubusercontent.com/MINT-the-GAP/lia-marker/main/README.md
-->

# Parts of Speech

## Task 1 — Nouns and Verbs

Highlight all **nouns** in red and all **verbs** in blue.

<div class="markerquiz">
The @markred(dog) @markblue(runs) across the @markred(garden) every @markred(morning).
@TextmarkerQuiz
</div>

---

## Task 2 — Adjectives

Highlight all **adjectives** in green.

<div class="markerquiz">
The @markgreen(tall) @markred(tree) cast a @markgreen(long), @markgreen(dark) @markred(shadow).
@TextmarkerQuiz
</div>

---

## Task 3 — Any color (free choice)

Mark the word that does NOT belong to the group.

<div class="markerquiz">
apple — banana — @mark(carrot) — pear — cherry
@TextmarkerQuiz
</div>

Example: Chemistry Text Analysis

<!--
import: https://raw.githubusercontent.com/MINT-the-GAP/lia-marker/main/README.md
-->

# Oxidation and Reduction

Read the following text.
Highlight all **oxidizing agents** in orange and all **reducing agents** in blue.

<div class="markerquiz">
In the reaction between @markedblue(iron) and @markedorange(oxygen), the
@markblue(iron) is @markblue(oxidized) while @markorange(oxygen) acts as the
@markorange(oxidizing agent). In the reverse process,
@markblue(carbon monoxide) acts as the @markblue(reducing agent).
@TextmarkerQuiz
</div>

Try it live — click a color in the toolbar, then click words to highlight them, and check your answer:


Full Template Demo


Use Cases

Reading comprehension — Students highlight key claims, evidence, or specific grammatical categories directly in a passage.

Grammar exercises — Color-code parts of speech: red for nouns, blue for verbs, green for adjectives — quiz automatically checks correctness.

Scientific text analysis — Mark reactants vs. products, causes vs. effects, or primary vs. secondary sources.

Vocabulary building — Students highlight unknown words in yellow, known words in green, for a visual learning-gap analysis.


Technical Facts

Runs in browserYes — script plugin
Server requiredNo
Key macros@markCOLOR, @mark, @markedCOLOR, @TextmarkerQuiz
Colorsred, blue, green, yellow, pink, orange
Free highlightingYes — toolbar button with color picker
Auto-gradingYes — @TextmarkerQuiz checks color and word
Pre-filled demosYes — @markedCOLOR read-only highlights
Community templateYes (MINT-the-GAP)
LicenseMIT
MaintainedVersion 0.0.1

Try It

Try in LiaScript Open in LiveEditor View on GitHub

Related Posts

lia-annotation for LiaScript: Live Drawing Overlay for Classroom Presentations

Add a freehand drawing overlay to every LiaScript slide with lia-annotation — pen, eraser, undo/redo, and optional LaTeX OCR for handwritten quiz answers, all in presentation mode.

Read More

lia-freeze-v2 for LiaScript: Quiz Submission and Teacher Review Links

Let students freeze their LiaScript quiz answers into a shareable URL with lia-freeze-v2 — the teacher opens the link, sees exactly what the student answered, and the page is locked for review.

Read More

lia-orthography for LiaScript: Spelling and Dictation Exercises

Create interactive spelling correction and dictation exercises in LiaScript with lia-orthography — inline correction, full-text editing with diff feedback, and narrated dictation gaps.

Read More