0

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

116 0 1
Posted   1 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   1 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
1 months ago     Paul Schneider     85   |   3  

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