[ / / / / / / / / / ] [ dir / asmr / cute / f / fur / htg / maka / trap / vore ]

/8code/ - Infinite Code

Discussion about 8chan's codebase.

Catalog

Krautchan bunker
Try these Embeds:
soundcloud, fontvid.me, xhamster, pornhub, redtube, tube8, xvideos, youjizz, vimeo, twitch.tv, dailymotion, vaughnlive, liveleak, nicovideo, streamable, soundcloud
Email
Subject
Comment *
File *
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Options
Password (For file and post deletion.)

Allowed file types:jpg, jpeg, gif, png, webm, mp4, pdf
Max filesize is 12 MB.
Max image dimensions are 10000 x 10000.
You may upload 4 per post.


Rules and Info: https://8chan.co/8code/rules.html | Main Repository: https://github.com/ctrlcctrlv/8chan/ | Archive: http://8archive.moe/8code/

File: 1444985347486.jpg (28.45 KB, 872x960, 109:120, FOLLOW YOUR DREAMS.jpg)

a89630 No.24[Reply]

When you have too much text in a box, it will truncate it and add a line saying "Post too long. Click here to view the full text."

However, sometimes it does this on the last line. Considering that the "post too long" msg actually takes up 2 lines, it should perhaps take how much text is left in the post into consideration, rather than cutting it off at a hard #.



File: 1442670822652.jpg (18.75 KB, 300x354, 50:59, golly.jpg)

200e73 No.22[Reply]

So as per the configuration menu I set up my custom codes for all of the formatting options. Spoiler is like dis, bold is [b]like dis[/b] etc. Unfortunately it seems that no matter what, the site will not accept my magic words and continues to expect default syntax.

Is there a fix for this in the works?

200e73 No.23

Well, spoiler worked, but otherwise…




File: 1418720925102.png (27.61 KB, 713x229, 713:229, tar.png)

575e37 No.5[Reply]

Could we get like some sort of list of important files/functions that 8chan uses and what they do? Documentation in the codebase is non-existent, not even developer notes scattered around.

d0de1b No.6

+1

This would really help contributors with grokking the codebase.



File: 1418553276656.png (377.75 KB, 454x603, 454:603, AnsiC_StopTreatingThemLike….png)

155a4b No.2[Reply]

Something I dislike about code tags both on Halfchan and Fullchan is their lack of flexibility. Fullchan's code tags eat tabs (whereas Halfchan's converts them to four spaces), and neither of them is syntax aware. Both of them will highlight keywords arbitrarily as long as they're used in some sort of programming language, and will treat certain symbols as comments or quotes regardless of what language they're in. This makes them very bad for Lisp based languages, which often use single quotes and # characters to represent symbols and characters. I think we can do better than that.

Rather than our current approach to code tags, perhaps we could do something like <code lang="C"></code> (but as BBcode obviously), and have it perform syntax highlighting based on that language. If no language is provided, it would do the default action it currently uses (except maybe not eating tab characters and looking like total shit on mobile).

What would it take to get something like this implemented?

fcd228 No.3

>>2
I think it could be possible by making use of the ACE editor highlighting syntax.
https://github.com/ajaxorg/ace-builds/blob/master/src-noconflict/
8chan currently uses prettify.css for highlighting the DOM, but I'm not sure what is used to filter the BBCode into markup content yet.
It's probably more involved than any of the contributors/devs want to deal with atm though, so it might be a while before it gets tackled.



Delete Post [ ]
[]
[1] [2] Next | Catalog
[ / / / / / / / / / ] [ dir / asmr / cute / f / fur / htg / maka / trap / vore ]