0

How do I show spacing in text objects so that learners can copy and paste the code into their own files?

738 0 1
Posted   11 months ago

I have a situation where I want to display code that has specific leading spacing in the code sample and I want the learner to be able to view the proper design and copy and paste it into thier coding system. 

Right now when I put the spacing in dominKnow it deletes and removes the extra spaces after I add the object.

Comments

( 0 )

Answers  ( 1 )

0
Posted   11 months ago

You can preserve text spacing and formatting by using an HTML widget wherever code blocks need to be used in dominKnow.

Here is an example

HTML Widget

 

 

Comments

( 1 )
0
11 months ago     Paul Schneider     232   |   4  

Thanks Matthew. That is super helpful and the how to is a dominknow | ONE project too :-)