Bored of code blocks? Check out Codeview!

The most common way to show code is via code blocks. But code blocks are really boring. So, to make code blocks more fun (and easier to digest!) I made Codeview.

This is is just a proof of concept, if there is enough demand I will refine and improv…


This content originally appeared on DEV Community and was authored by Siddharth

The most common way to show code is via code blocks. But code blocks are really boring. So, to make code blocks more fun (and easier to digest!) I made Codeview.

This is is just a proof of concept, if there is enough demand I will refine and improve it (although I consider most of the bugs in Codeview to be features)

Code blocks are nice, but they are static, which makes it hard to really explain code. Inserting lines somewhere, replacing lines, these all are kinda confusing with ordinary code blocks. Well, struggle no more, because we have Codeview.

Codeview can automatically mesh, merge, replace, and insert code. It's pretty powerful once you wire it up properly. One potential way I'm considering using it is by linking it to scroll, so that we get a code block which changes with the content!

I have to say that this is pretty broken. One thing is that there's no syntax highlighting, and next thing is that sometimes there are some timing issues, etc. Once I fix all these I'll definitely make this a library!


This content originally appeared on DEV Community and was authored by Siddharth


Print Share Comment Cite Upload Translate Updates
APA

Siddharth | Sciencx (2021-08-31T11:31:13+00:00) Bored of code blocks? Check out Codeview!. Retrieved from https://www.scien.cx/2021/08/31/bored-of-code-blocks-check-out-codeview/

MLA
" » Bored of code blocks? Check out Codeview!." Siddharth | Sciencx - Tuesday August 31, 2021, https://www.scien.cx/2021/08/31/bored-of-code-blocks-check-out-codeview/
HARVARD
Siddharth | Sciencx Tuesday August 31, 2021 » Bored of code blocks? Check out Codeview!., viewed ,<https://www.scien.cx/2021/08/31/bored-of-code-blocks-check-out-codeview/>
VANCOUVER
Siddharth | Sciencx - » Bored of code blocks? Check out Codeview!. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/08/31/bored-of-code-blocks-check-out-codeview/
CHICAGO
" » Bored of code blocks? Check out Codeview!." Siddharth | Sciencx - Accessed . https://www.scien.cx/2021/08/31/bored-of-code-blocks-check-out-codeview/
IEEE
" » Bored of code blocks? Check out Codeview!." Siddharth | Sciencx [Online]. Available: https://www.scien.cx/2021/08/31/bored-of-code-blocks-check-out-codeview/. [Accessed: ]
rf:citation
» Bored of code blocks? Check out Codeview! | Siddharth | Sciencx | https://www.scien.cx/2021/08/31/bored-of-code-blocks-check-out-codeview/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.