Zavala icon indicating copy to clipboard operation
Zavala copied to clipboard

Ability to render Code/Monospace text

Open pramjana opened this issue 3 years ago • 2 comments

Hi @vincode-io,

Would it be possible to have a code block rendered or maybe as inline code? This would then make Zavala a great notebook for coders.

wbr, Pramod

pramjana avatar Feb 03 '23 11:02 pramjana

That is something I would like as well. Look for it in a future release.

vincode-io avatar Feb 03 '23 20:02 vincode-io

For my use case, it would be helpful if a Code/Monospace text format leaves the asterisks and underscores "as-is". i.e. does not escape the individual asterisk by \* and underscore characters by \_ on export & import within the Code/Monospace formatted portions.

Potentially, the ` backtick inline code syntax and ``` fenced code syntax could be used to deliniate the beginning and end of Code/Monospace formatted portions. This syntax is a commonly used Markdown extension (based on a Markdown CLI Evaluation).

Example import/export note text with Code/Monospace portions:

The variable `CMAKE_BUILD_TYPE` is used here:

```
cmake -D CMAKE_INSTALL_PREFIX=/opt/opencv/4.8.0_test \
      -D BUILD_TESTS=ON \
      -D CMAKE_BUILD_TYPE=RELEASE
```

And, note that `2 * 5 * 7 = 70` is basic arithmetic.

… would look like the following when rendered in the app:

The variable CMAKE_BUILD_TYPE is used here:

cmake -D CMAKE_INSTALL_PREFIX=/opt/opencv/4.8.0_test \
      -D BUILD_TESTS=ON \
      -D CMAKE_BUILD_TYPE=RELEASE

And, note that 2 * 5 * 7 = 70 is basic arithmetic.

marc-medley avatar Sep 25 '23 01:09 marc-medley