vincode-io / Zavala

A good, simple outliner for macOS, iPadOS, and iOS.
https://zavala.vincode.io
MIT License
339 stars 22 forks source link

Ability to render Code/Monospace text #198

Open pramjan opened 1 year ago

pramjan commented 1 year ago

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

vincode-io commented 1 year ago

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

marc-medley commented 1 year ago

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.