In Rich Editor - What are code blocks and how do we use them?... Thank you

:-)
Best Answer
-
The MFP Community, under the covers, is really a piece of software called Vanilla Forums. There's a lot of info online about details of Vanilla Forums' rich text editor. This is what it says about code blocks:
Code blocks
The code block format option formats your text as
code
and includes syntax highlighting for some of the more common coding languages. When you input code, the coding language is automatically detected and the syntax is highlighted accordingly. Rich Editor currently supports:ADA
Apache
AppleScript
C++
Bash
BASIC
Clojure
CMake
CSS
Dart
Dockerfile
Excel
Go
Haskell
HTTP
Java
JavaScript
JSON
Kotlin
Less
Lua
Makefile
Markdown
NGINX
Objective-C
Perl
PHP
PowerShell
Python
Ruby
Rust
SCSS
SQL
Swift
Twig
TypeScript
XML
YAML
Source: https://success.vanillaforums.com/kb/articles/615-rich-editor
0
Answers
-
Thank you - so I could use it to insert an excel spreadsheet or table then I guess.
0 -
You can just paste in a table from any compatible rich text source. For example, here are a few cells that I copy-pasted from Excel, no code block involved:
75%
135
80%
144
85%
153
If I put it in a code block it looks like this, just the formatted values:
75% 135
80% 144
85% 153I assume I can get Excel formulas to show up with some variation, but I don't need the feature, so I'll leave that to someone else who would be able to use it.
0
Categories
- All Categories
- 1.4M Health, Wellness and Goals
- 394.9K Introduce Yourself
- 44K Getting Started
- 260.6K Health and Weight Loss
- 176.2K Food and Nutrition
- 47.5K Recipes
- 232.7K Fitness and Exercise
- 444 Sleep, Mindfulness and Overall Wellness
- 6.5K Goal: Maintaining Weight
- 8.6K Goal: Gaining Weight and Body Building
- 153.2K Motivation and Support
- 8.2K Challenges
- 1.3K Debate Club
- 96.4K Chit-Chat
- 2.5K Fun and Games
- 4.2K MyFitnessPal Information
- 16 News and Announcements
- 1.3K Feature Suggestions and Ideas
- 2.8K MyFitnessPal Tech Support Questions