0

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

4141 0 2
Posted   4 years ago
  ●   Edited   3 years 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 their 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  ( 2 )

0
Posted   2 years ago

great let me use it on best tennis rackets for intermediate players hopefully it gives better result.

Comments

( 0 )
0
avatar matthew.brady   |    
Posted   4 years ago
  ●   Edited   4 years 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
4 years ago     Paul Schneider     783   |   9  

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