nimiSlides icon indicating copy to clipboard operation
nimiSlides copied to clipboard

API for animateCode which uses comments in the code

Open HugoGranstrom opened this issue 1 year ago • 4 comments

@pietroppeter had the idea for animateCode, that instead of specifying the lines of code to highlight using numbers (eg. 1..3, 4, 5..7), the lines in the code are marked using comments instead. This would remove the need for updating all the line numbers if you change the code. The general idea is this:

animateCode:
  echo 1 # 1 $$$
  echo 2
  echo 1 # 1 $$$
  echo 2 # 2 $$$$

The number specifies the order of highlighting and the $$$ (or something else), is a marker for our parser to find the lines. A number of questions are still unanswered, like what symbols to use and how to implement it in a simple way.

HugoGranstrom avatar Sep 25 '22 16:09 HugoGranstrom