Login Register


[SUGGESTION] Formatting and Embedding filter_list
Author
Message
[SUGGESTION] Formatting and Embedding #1
(02-08-2017, 05:47 PM)Hoss Wrote:
Formatting and Embedding

Okay, so I was thinking that some more formatting/embedding options would be very nice, it would take a bit of work, but be totally worth it in the end.

Formatting
  • With BBCode
Formatting with BBCode is fine, it's just a forum after all, but I would like to see syntax highlighting for many languages like C/C++, Python, Go, JavaScript, etc. by using a specifier on the language type (maybe use PrismJS?).
Example:
Code:
[code=go] This would be syntax highlighting for Go [code/]
  • With Markdown
This is something I always wanted to see on forums, the option to format with Markdown instead of BBCode. I would definitely like to see GitHub flavored Markdown, but just the normal spec version would be fine too.

Embedding
  • Pastebin
Sometimes it's just easier to throw a bit of code on Pastebin, or maybe it's just already there. It would be nice to have a "pastebin" bbcode tag. If this were implemented I think they should be in spoilers.
Example:
Code:
[pastebin=http://pastebin.com/1t71AKEb]Spoiler Text[/pastebin]
  • IDE One... or something like that
IDE One is an online compiler for many different languages where you can paste your code into the browser and click run, then share a link to the mini-project with friends. This is very helpful when you are trying to help someone understand your code  or you are trying to make a tutorial and was a piece of code someone can run without downloading a compiler.
Example:
Code:
[ideone=http://ideone.com/uZjnq8][/ideone]


Maybe there are other things that could be embedded? Leave thoughts and suggestions below, drop a like if you think any of this is dope.
(This post was last modified: 02-08-2017, 06:57 PM by Hoss.)
this forum is dead


RE: [SUGGESTION] Formatting and Embedding #2
This is a fantastic idea if you ask me. I think the last point (code one) is a bit of a stretch but it might not hurt to have for anyone who wants to use it.
Scientia potentia est

[Image: inkexplosion.jpg]


RE: [SUGGESTION] Formatting and Embedding #3
I specifically like that last idea, may be a bit overkill, but very usefull.

The other ones are very nice to have too.


(11-02-2018, 02:51 AM)Skullmeat Wrote: Ok, there no real practical reason for doing this, but that's never stopped me.


RE: [SUGGESTION] Formatting and Embedding #4
I'm all for syntax highlighting and maybe pastebin/other embedded content as long as it gets formatted to SL's theme to keep it all consistent.
It's often the outcasts, the iconoclasts ... those who have the least to lose because they
don't have much in the first place, who feel the new currents and ride them the farthest.

[+] 1 user Likes Inori's post

RE: [SUGGESTION] Formatting and Embedding #5
(02-09-2017, 05:17 AM)Inori Wrote: I'm all for syntax highlighting and maybe pastebin/other embedded content as long as it gets formatted to SL's theme to keep it all consistent.

Yea, would have to match the theme. There may need to be some post-processing of the content from other sources, but that shouldn't be too much of a problem.
this forum is dead


RE: [SUGGESTION] Formatting and Embedding #6
(02-09-2017, 05:17 AM)Inori Wrote: I'm all for syntax highlighting and maybe pastebin/other embedded content as long as it gets formatted to SL's theme to keep it all consistent.

Good point, imagine if something was yellow and white.


(11-02-2018, 02:51 AM)Skullmeat Wrote: Ok, there no real practical reason for doing this, but that's never stopped me.


RE: [SUGGESTION] Formatting and Embedding #7
(02-09-2017, 05:19 AM)Ender Wrote:
(02-09-2017, 05:17 AM)Inori Wrote: I'm all for syntax highlighting and maybe pastebin/other embedded content as long as it gets formatted to SL's theme to keep it all consistent.

Good point, imagine if something was yellow and white.

Yea... looks like Scheiße imo:
[Image: tyNPYFz.png]
this forum is dead

[+] 1 user Likes Hoss's post

RE: [SUGGESTION] Formatting and Embedding #8
I like the suggestions, It certainly simplifies the process of tasks accordingly.

I'm not too sure whether the Pastebin option Is needed though. A simple copy & paste Into the spoiler tags takes minimal time and effort. That aside, good work.
[Image: AD83g1A.png]

[+] 1 user Likes mothered's post

RE: [SUGGESTION] Formatting and Embedding #9
Pastebin and the other one can be linked with [url] tags. Beyond that, users here don't use that type of thing often enough to warrant it.

I could have sworn that the code tags worked like that with syntax before, but maybe I'm wrong.


RE: [SUGGESTION] Formatting and Embedding #10
Bumping thread, as per @Oni's request. Named code tags would be dope, too.

[Image: ae24eba24e6248f997608b7b149d130f.png]
It's often the outcasts, the iconoclasts ... those who have the least to lose because they
don't have much in the first place, who feel the new currents and ride them the farthest.

[+] 1 user Likes Inori's post







Users browsing this thread: 1 Guest(s)