0

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

1513 0 2
Posted   2 years ago
  ●   Edited   5 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 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   3 months 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   2 years ago
  ●   Edited   2 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
2 years ago     Paul Schneider     567   |   8  

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