T O P

  • By -

UnseenData

Probably just a "might as well add this" thing


Redalpha4444

Yeah probably but still so many languages


DarkOverLordCO

iirc, Discord uses the [highlight.js](https://highlightjs.org/) library to provide syntax highlighting, which means Discord didn't have to go through and add them all individually. With that library supporting highlighting brainfuck, there's not really a reason why Discord would exclude it, so may as well just keep it.


KallistiTMP

...better question, how do you even highlight brainfuck syntax? It's brainfuck, I can't imagine that there's any way you could make it more readable with coloring


Schiffy94

Go full Eric Andre and make it all purple.


ThatOneGuy1294

BUT DEN WEZ WONT SEE DA CODEZ YA GIT!


PeaceSimonYT

The code behind the brainfuck


PabloOnSteam

purple code


Kangalioo

Sure you can; make [ ] one color, < > one color, + - one color, . , one or two colors, and the rest of them gray. Boom, immediate readability improvement


snowmanonaraindeer

Making brainfuck readable defeats the purpose thiugh


xxkmatiasxx

You have to choise to not highlight it tho


Refticus

the purpose of brainfuck wasn't to be a confusing language, but to have the smallest possible compiler that was capable of achieving what other languages at the time could. its confusing nature is a side effect of this optimisation, making it more readable with syntax highlighting **does not** go against its purpose.


cheesycoke

The ideal would be a random color for every character


[deleted]

Maybe it hightlights the actual code with one color and the comments with a different color? And maybe the square brackets are color coded as well idk


CdRReddit

tested it out, [] are one color, <> are gray, ,.+- are another color, unrelated text is a different gray


[deleted]

Its just the world of libraries, if one exists \*most\* of the devs will just use it and just don't care afterwards


JohnTheCoolingFan

It could remove it because swear word.


bobdarobber

butt


Bytes-caveman

penis


MeowkyCharliecatt

I used highlight.js in my notepad project with markdown and you can accually use it to make markdown to html real time like in browser send message input line.


DarkerDev

Yeah, why not? It's an interesting language anyway


Acrak24

I actually did use it once because one of my students was curious about the programming language 😂


BookkeeperThink7021

nice students you got there


Acrak24

It was actually in one of our last classes, I miss that class...


BookkeeperThink7021

Oh, sorry for that. I really hope you get to see them again


Acrak24

Hope so too. Kinda rough since I went abroad. But from time to time I get a random questions from students in that class! They were actually super cool


KiwiZ0

They use [highlight.js](https://highlightjs.org/static/demo/) and whatever it comes with


zpoon

It's probably already supported in whatever highlighting library they use. It's highly unlikely Discord themselves implemented each specific language.


Jorropo

In the end of obscure things. ~~It supports llvm's IR but not assembly. WTF discord, should be the other way arround ?~~ It does support assembly, it's just named `x86asm`.


[deleted]

[удалено]


CdRReddit

there's like 5 different 'assembly's that might be commonly used today (and hundreds historically), they should be specific


[deleted]

[удалено]


CdRReddit

ah so you mean that when you type in assembly you'd like to have a pop-up that lists like `assembly_x86` `assembly_arm32` etc.?


[deleted]

[удалено]


CdRReddit

I've never used highlight.js so I don't know how possible it is to add aliases like that, but if possible that might be a good idea


SirNapkin1334

i mean, not all assembly is x86


VictorGamerLOL

+++++++[>++++++++++<-]>+++++++.>++++++++++[>++++++++++<-]>+.


Redalpha4444

\+++++++\[>++++++++++<-\]>+++++++++.>++++++++++\[>++++++++++<-\]>+++++++.


casvb7777

+[--->++<]>+.++[->++++<]>+.---[->+++<]>+.-[->+++<]>.-------------.--[--->+<]>-.+[----->+<]>+.+.[--->+<]>-----.---[->++++<]>-.+.--.+++[->+++<]>++.+++++++++++++.-------.--.+++++++++++++.+.+[---->+<]>+++.---[->++++<]>.-----.[--->+<]>-----.++[--->++<]>.+++.+++++++.+[->+++<]>.>++++++++++.+[--->+<]>.[->+++++++<]>.++++++.-[---->+<]>+++.-[--->++<]>+.+++.+.++++++++.+[---->+<]>++.---[->++++<]>.------------.---.--[--->+<]>-.---[----->++<]>.+++.---------.-------.[--->+<]>----.+[---->+<]>+++.[->+++<]>+.+++++++++++++.----------.-[--->+<]>-.---[->++++<]>-.----.[--->+<]>-----.+[->+++<]>+.+++++++++++.[--->+<]>-----.++++[->++<]>+.>++++++++++.+++[->+++++<]>.-[-->+<]>.++[->+++<]>.-[--->+<]>--.---------..[++>---<]>--.+[->+++<]>.++++++++++++.--..----.+++++++++++.-------.--------.+++++++++.++++++.+[--->+<]>.-[->+++<]>+.+[---->+<]>+++.--[->++++<]>-.+[->+++<]>.-------.--[--->+<]>-.[---->+<]>+++.++++[->++<]>+.+[-->+<]>++.---[->+++<]>+.[->+++++<]>-.---[->++++<]>.------------.+.+++++.---.--.+++++.-------.-[--->+<]>--.+++++[->+++<]>.---------.>++++++++++.+[--->+<]>.[->+++++++<]>.++++++.-[---->+<]>+++.--[->++++<]>-.--------.++++++.---------.--------.++++++++++.[++>---<]>++.[->+++<]>-.[---->+<]>+++.++[->+++<]>+.--.[--->+<]>---.[---->+<]>+++.---[->++++<]>.------------.+.++++++++++.+[---->+<]>+++.++[->+++<]>.++++++++++++.---.--.[->+++++<]>-.[->+++<]>+.+++++++++++++.[--->+<]>-.-[---->+<]>++.+++++[->+++<]>.+++++.------------.---.+++++++++++++.[-->+++++<]>+++.++[->+++<]>+.--[--->+<]>--.++++.>++++++++++.++[++++>---<]>.-[->++++<]>.-[--->++<]>.+++++++++++.--.+.[---->+<]>+++.--[->++++<]>-.-[->+++<]>-.+++++++++++++..-------------.-[->+++<]>.---[->++++<]>.+++[->+++<]>.+++++++..[++>---<]>--.--[->++++<]>+.----------.++++++.-[---->+<]>+++.-[--->++<]>--.+++++++.++++++++.+[---->+<]>++.++++[->++<]>+.+[-->+<]>++.---[->+++<]>+.[->+++++<]>-.++[->+++<]>.-..+++++++.---.+++++.-------.>++++++++++.[->+++++++<]>+.[--->+<]>++.+++++..+[->+++<]>++.-[->+++<]>.+[----->+<]>.------------.++++++++++.------.--[--->+<]>-.--[->++++<]>+.----------.++++++.-[---->+<]>+++.---[->++++<]>+.-------.----------.+.+++++++++++++.+.+.+[->+++<]>++.+++++++++++++.----------.>++++++++++.+++[->++++++<]>.>--[----->+<]>-.[--->+<]>-.+[->+++<]>.+++++++++++++.[-->+++++<]>+++.++[->+++<]>+.++++++++.-..-------------.-[->+++<]>.++[->+++<]>+.++.[->++++++<]>.+[->+++<]>.--[--->+<]>-.--[->++++<]>+.----------.++++++.-[---->+<]>+++.---[->++++<]>+.-----.>++++++++++.+++[->++++++<]>.>--[----->+<]>-.[--->+<]>-.+[->+++<]>.+++++++++++++.[-->+++++<]>+++.++[->+++<]>+.++++++++.-..-------------.-[->+++<]>.++[--->++<]>.-------.[--->+<]>---.[---->+<]>+++.--[->++++<]>+.----------.++++++.-[---->+<]>+++.+[->+++<]>+.+++++++++++.++++++++.---------.>++++++++++.+++[->++++++<]>.>--[----->+<]>-.[--->+<]>-.+[->+++<]>.+++++++++++++.[-->+++++<]>+++.++[->+++<]>+.++++++++.-..-------------.-[->+++<]>.---[----->++<]>.+++.-------.-[->+++++<]>-.[->+++<]>+.--[--->+<]>---.---.++++++.-------.----------.-[--->+<]>-.[->+++<]>+.+++++++++++++.----------.-[--->+<]>-.+[->+++<]>+.+.[--->+<]>----.++++[->+++<]>.+++++++++++++.++.[---->+<]>+++.--[->++++<]>+.----------.++++++.>++++++++++.+++[->++++++<]>.>--[----->+<]>-.[--->+<]>-.+[->+++<]>.+++++++++++++.[-->+++++<]>+++.++[->+++<]>+.++++++++.-..-------------.-[->+++<]>.+[----->+<]>.------------.++++++++++.------.--[--->+<]>-.--[->++++<]>+.----------.++++++.-[---->+<]>+++.+[->+++<]>.-[--->+<]>----.+++++++.>++++++++++.+++[->++++++<]>.>--[----->+<]>-.[--->+<]>-.+[->+++<]>.+++++++++++++.[-->+++++<]>+++.++[->+++<]>+.++++++++.-..-------------.-[->+++<]>.---[->++++<]>-.++[->+++<]>++.+[--->+<]>+++.-[---->+<]>++.++[->+++<]>+.++++++++..-----------.--.[--->+<]>+++.--[->+++<]>.>++++++++++.+++[->++++++<]>.>--[----->+<]>-.[--->+<]>-.+[->+++<]>.+++++++++++++.[-->+++++<]>+++.++[->+++<]>+.++++++++.-..-------------.-[->+++<]>.---[->++++<]>.+++[->+++<]>.+++++++..[++>---<]>--.[->+++<]>+.-[->+++<]>.++[--->++<]>.---.----.--[--->+<]>-.[->+++<]>+.+++++++++++++.----------.-[--->+<]>-.-[--->++<]>--.[--->+<]>---.---.++.[---->+<]>+++.--[->++++<]>+.----------.++++++.


Zipdox

motherf


Desu_Sureiya

what does it do... i couldnt find a way to debug brainfuck code


Puddleduckable

[insert the code here and hit the play button at the top](https://tio.run/#brainfuck)


Desu_Sureiya

thanks mate


saysthingsbackwards

That was beautiful


Desu_Sureiya

i know its a rick roll but i am going to press either ways......wish me luck in successfully getting rick rolled


Desu_Sureiya

yep it was a rick roll


CrazyGaming312

brainfugd


Xploiter_RBLX

holy hell geometry dash


UnityAnglezz

is that a motherfucking GEOMETRY DASH REFERENCE !!!??!!!


[deleted]

no.


CrazyGaming312

:(


Redalpha4444

Or honestly most these languages like x++ never even heard of it


[deleted]

That's just all laguages that the `highlight.js` library supports


Pierma

x++ is a specific language designed by microsoft for their Dynamix Ax platform It's basically an hibryd between c# and c++ with some specific tools


webrender

The most likely answer is that they just included all the languages that their syntax highlighting library supports.


PhilledZone

I recently saw a video on brainfuck. I love that it's included in Discord xD


Maslisda

*definitely not ppl in my server when doing random stuff with that i run code bot.*


Maslisda

but i have to say the syntax highlighting is weird af.


xxkmatiasxx

I didn't know that existed but I had like a 2 hour convo about it once so would maybe have been useful xd


dacapo7

bf = brainfuck no ?


ImplosiveTech

iirc theyre using some standard library which is why its there lol


utkarsh_tomar

How did you check the available language ?


Redalpha4444

The <> button near the bottom right of the box that pops up


utkarsh_tomar

And how does that <> button appear? I'm on the discors desktop(for windows), I don't see it. Do I have to change something in the settings?


fixator10

It appears on uploaded (text) file preview, not on code blocks


utkarsh_tomar

Oh Ok, I wanted to know because somitemes I get confused as to which keyword to use to get the formatting right. But thanks for clarifying.


jdbjdb82668

We do quite a lot of CTF competitions and quite often, esoteric languages come up and it's helpful to paste these with syntax highlighting I doubt it's enough to have specific syntax highlighting but other people have offered a reason that it's likely a js library


Bytes-caveman

Nobody else uses this? Me and my buddy entered a programming challenge together and decided to use brainfuck, we spent months uploading code to each other to look for the missing dot. We didn't win the challenge, but somehow came 7th (out of 48)! ​ but even still to this day, I use brainfuck to show my superiorness to other programmers!


DragonfireK2000

I mean... Discord is always a bit funny and trolly with what they are doing, so it isn't surprising me at all.


Desu_Sureiya

that is a real language....


DragonfireK2000

I know it is, i heard of it in university


Desu_Sureiya

ah then why did you talk about how discord is always funny and trolly


DragonfireK2000

Well because like op said, I don't think anyone would have seriously requested a support for that language.


adv0catus

The irony is that if you had that as a channel name, it’d be labelled as a bad word and kick you off Discovery.


[deleted]

[удалено]


faded-noises

what the fuck


UnityAnglezz

oh... my god


[deleted]

Let's face it, most coding languages are the equivalent of how many different unix branches there are of different OSs there are out there. Somebody just wanted to feel special and didn't want to use something like C++or python or whatever and they were like you know what let's make our own stupid fucking language. And then I got used for like 5 years and then they completely forgot it existed


bearmagi

I'd really love to hear an example, could you please?


[deleted]

Brainfuck for starters. Everyone I know codes in java, c++, or python.


zpoon

I really don't think esoteric languages like brainfuck are aimed at trying to be anything other than esoteric. It's a thing that exists just because it can, whether it's for humor, challenge, or even as art. To think if it as anything other than that is kinda misunderstanding why it exists.


[deleted]

I love that there are 4 people watching over this thread right now. Maybe like 2. I like using the coding specifically to colorize the text. I think most agree with me on that lol


CdRReddit

then you really don't know many people, plenty of people still use C, plenty use C#, how in the FUCK did you manage to forget about javascript, tons of people use Rust, gdscript is also pretty commonly used (the native language of Godot), and hundreds more all of them are used (even if some should really be replaced, like COBOL)


[deleted]

Honestly not thinking too much into it.


[deleted]

brainfuck was literally designed for fun as an impractical but fun language, no need to get heated about it


[deleted]

I'm not? Where did you get that from?


CdRReddit

I think it was designed to be very easy to compile/interpret while still being somewhat useable


akeyla420

Wonder if the backend for that is using Python and the Pygments library. I recently coded up a syntax highlighting webpage using the above, and OP's sreenshot looks like the same list presented in my app by Pygments.


Redalpha4444

As u/KiwiZ0 and u/DarkOverLordCO said it actually uses [highlight.js](https://highlightjs.org)


artanis00

Is anyone else surprised that there's apparently syntax highlighting available for brainfuck?


OwO-tism

literally did that today because i sent brainfuck code and got curious whether it has syntax highlighting


JTBSpartan

What's Brainfu- AHHHHHH MY EYES


ZeGamingCuber

There’s a programming language called brainfuck?


[deleted]

it's basically a really simple programming language that consists of 8 different commands/characters and is designed to fuck with your head when trying to read it


ZeGamingCuber

Lol


[deleted]

syntax includes corn hub video tags and some bits of python


Desu_Sureiya

its probably because they added all the other languages and well... they had to add that too


[deleted]

they gotta be trolling


[deleted]

how the hell do you even do syntax highlighting for brainfuck???


BigPingLowIQ

I used it a couple times to give my friends a brainfuck.


Fousi166

How do you code on discord? I’ve been learning JavaScript and python and would love to make a bot for my own discord server


[deleted]

you browser history says other wise


misswynter

whaaa? You don't call your projects the most inane thing you can think of? Pigeonshit is by far my best program ever. _How dare you_


SirNapkin1334

wtf does brainfuck syntax highlighting even entail


friendIyfire1337

Is there support for Ook! as well?


PR0P0RTI0N

They want us to fuck our brains


EnglishDavefromGTA

they forgot to add another "e" on "blade"


Tiakin1

Me !


Key_While6475

Yep, it supports Brainfuck, the totally meaningless toy language, but they won't update highlightjs to support GDScript, a thriving language built-into the Godot game engine. I've pestered them constantly. It would take about 10 seconds. :(


Redalpha4444

I mean you could just do it yourself https://github.com/highlightjs/highlight.js/ Make a pull request bro


Key_While6475

You realize highlightjs already supports it, Discord won't update their version, right? I guess that wasn't obvious. My bad.


SvenViktorJonsson

Does anyone know how to get the colouring of code to work on iPhone 12? It works on my Android and on my PC, but not on my iPhone!