Making lessons at Sololearn. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Making lessons at Sololearn.

What type must i make Sololearn lessons ? Html and doc lose formatting while uploading.

23rd May 2018, 4:25 PM
Ruven Grinberg/Рувен Гринберг
Ruven Grinberg/Рувен Гринберг - avatar
3 Answers
+ 4
[clipboard internals; ALL OSs] Use plain-text editors like DroidEdit, QuickEdit, etc. Word processors + code = evil surprises Example: Google Docs--clipboard object MIME type is text/plain wrapped in text/html: root@here # service call clipboard 3 Result: Parcel( 0x00: 0000 0001 0001 0000 '........' 0x10: 0000 0003 0039 7061 '....9.ap' 0x20: 6c70 6369 7461 6f69 'plicatio' 0x30: 2f6e 2d78 6e76 2e64 'n/x-vnd.' 0x40: 6f67 676f 656c 642d 'google-d' 0x50: 636f 2d73 6f64 7563 'ocs-docu' 0x60: 656d 746e 732d 696c 'ment-sli' 0x70: 6563 632d 696c 2b70 'ce-clip+' 0x80: 7277 7061 6570 0064 'wrapped.' 0x90: 000a 6574 7478 702f '..text/p' 0xa0: 616c 6e69 0000 0009 'lain....' 0xb0: 6574 7478 682f 6d74 'text/htm' 0xc0: 006c 'l. ') SoloLearn treats the paste as HTML! Pasting the wrapped object into a plain-text editor strips the object wrapper so Copy yields: 0x00: 0000 0001 0001 ffff '........' 0x10: 0001 000a 6574 7478 '....text' 0x20: 702f 616c 6e69 0000 '/plain..')
27th May 2018, 3:53 AM
Kirk Schafer
Kirk Schafer - avatar
+ 3
Could you clarify exactly what you're doing here? Like, you're copy+pasting from a Windows system (what program?) or a website, or an email? Are you uploading to CodePlayground codes, or to SoloLearn's Lessons (<-- I think you mean this, just checking)? Either way, could you link a CodePlayground code that (probably will have) has the problem into this Q&A please, so I can see what text you have (just click the (+), search for your title and add your code ... or share it from the code yourself using the share icon, then copy the link to the clipboard and paste it here).
26th May 2018, 5:32 PM
Kirk Schafer
Kirk Schafer - avatar
0
I edit the document at the android smartphone and copy from programm google docs to sololearn. yes i mean sololearn lessons, not code playground.
26th May 2018, 6:58 PM
Ruven Grinberg/Рувен Гринберг
Ruven Grinberg/Рувен Гринберг - avatar