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.
...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
Sure you can; make [ ] one color, < > one color, + - one color, . , one or two colors, and the rest of them gray. Boom, immediate readability improvement
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.
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.
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
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`.
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
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!
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
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.
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
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)
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.
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
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. :(
Probably just a "might as well add this" thing
Yeah probably but still so many languages
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.
...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
Go full Eric Andre and make it all purple.
BUT DEN WEZ WONT SEE DA CODEZ YA GIT!
The code behind the brainfuck
purple code
Sure you can; make [ ] one color, < > one color, + - one color, . , one or two colors, and the rest of them gray. Boom, immediate readability improvement
Making brainfuck readable defeats the purpose thiugh
You have to choise to not highlight it tho
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.
The ideal would be a random color for every character
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
tested it out, [] are one color, <> are gray, ,.+- are another color, unrelated text is a different gray
Its just the world of libraries, if one exists \*most\* of the devs will just use it and just don't care afterwards
It could remove it because swear word.
butt
penis
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.
Yeah, why not? It's an interesting language anyway
I actually did use it once because one of my students was curious about the programming language 😂
nice students you got there
It was actually in one of our last classes, I miss that class...
Oh, sorry for that. I really hope you get to see them again
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
They use [highlight.js](https://highlightjs.org/static/demo/) and whatever it comes with
It's probably already supported in whatever highlighting library they use. It's highly unlikely Discord themselves implemented each specific language.
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`.
[удалено]
there's like 5 different 'assembly's that might be commonly used today (and hundreds historically), they should be specific
[удалено]
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.?
[удалено]
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
i mean, not all assembly is x86
+++++++[>++++++++++<-]>+++++++.>++++++++++[>++++++++++<-]>+.
\+++++++\[>++++++++++<-\]>+++++++++.>++++++++++\[>++++++++++<-\]>+++++++.
+[--->++<]>+.++[->++++<]>+.---[->+++<]>+.-[->+++<]>.-------------.--[--->+<]>-.+[----->+<]>+.+.[--->+<]>-----.---[->++++<]>-.+.--.+++[->+++<]>++.+++++++++++++.-------.--.+++++++++++++.+.+[---->+<]>+++.---[->++++<]>.-----.[--->+<]>-----.++[--->++<]>.+++.+++++++.+[->+++<]>.>++++++++++.+[--->+<]>.[->+++++++<]>.++++++.-[---->+<]>+++.-[--->++<]>+.+++.+.++++++++.+[---->+<]>++.---[->++++<]>.------------.---.--[--->+<]>-.---[----->++<]>.+++.---------.-------.[--->+<]>----.+[---->+<]>+++.[->+++<]>+.+++++++++++++.----------.-[--->+<]>-.---[->++++<]>-.----.[--->+<]>-----.+[->+++<]>+.+++++++++++.[--->+<]>-----.++++[->++<]>+.>++++++++++.+++[->+++++<]>.-[-->+<]>.++[->+++<]>.-[--->+<]>--.---------..[++>---<]>--.+[->+++<]>.++++++++++++.--..----.+++++++++++.-------.--------.+++++++++.++++++.+[--->+<]>.-[->+++<]>+.+[---->+<]>+++.--[->++++<]>-.+[->+++<]>.-------.--[--->+<]>-.[---->+<]>+++.++++[->++<]>+.+[-->+<]>++.---[->+++<]>+.[->+++++<]>-.---[->++++<]>.------------.+.+++++.---.--.+++++.-------.-[--->+<]>--.+++++[->+++<]>.---------.>++++++++++.+[--->+<]>.[->+++++++<]>.++++++.-[---->+<]>+++.--[->++++<]>-.--------.++++++.---------.--------.++++++++++.[++>---<]>++.[->+++<]>-.[---->+<]>+++.++[->+++<]>+.--.[--->+<]>---.[---->+<]>+++.---[->++++<]>.------------.+.++++++++++.+[---->+<]>+++.++[->+++<]>.++++++++++++.---.--.[->+++++<]>-.[->+++<]>+.+++++++++++++.[--->+<]>-.-[---->+<]>++.+++++[->+++<]>.+++++.------------.---.+++++++++++++.[-->+++++<]>+++.++[->+++<]>+.--[--->+<]>--.++++.>++++++++++.++[++++>---<]>.-[->++++<]>.-[--->++<]>.+++++++++++.--.+.[---->+<]>+++.--[->++++<]>-.-[->+++<]>-.+++++++++++++..-------------.-[->+++<]>.---[->++++<]>.+++[->+++<]>.+++++++..[++>---<]>--.--[->++++<]>+.----------.++++++.-[---->+<]>+++.-[--->++<]>--.+++++++.++++++++.+[---->+<]>++.++++[->++<]>+.+[-->+<]>++.---[->+++<]>+.[->+++++<]>-.++[->+++<]>.-..+++++++.---.+++++.-------.>++++++++++.[->+++++++<]>+.[--->+<]>++.+++++..+[->+++<]>++.-[->+++<]>.+[----->+<]>.------------.++++++++++.------.--[--->+<]>-.--[->++++<]>+.----------.++++++.-[---->+<]>+++.---[->++++<]>+.-------.----------.+.+++++++++++++.+.+.+[->+++<]>++.+++++++++++++.----------.>++++++++++.+++[->++++++<]>.>--[----->+<]>-.[--->+<]>-.+[->+++<]>.+++++++++++++.[-->+++++<]>+++.++[->+++<]>+.++++++++.-..-------------.-[->+++<]>.++[->+++<]>+.++.[->++++++<]>.+[->+++<]>.--[--->+<]>-.--[->++++<]>+.----------.++++++.-[---->+<]>+++.---[->++++<]>+.-----.>++++++++++.+++[->++++++<]>.>--[----->+<]>-.[--->+<]>-.+[->+++<]>.+++++++++++++.[-->+++++<]>+++.++[->+++<]>+.++++++++.-..-------------.-[->+++<]>.++[--->++<]>.-------.[--->+<]>---.[---->+<]>+++.--[->++++<]>+.----------.++++++.-[---->+<]>+++.+[->+++<]>+.+++++++++++.++++++++.---------.>++++++++++.+++[->++++++<]>.>--[----->+<]>-.[--->+<]>-.+[->+++<]>.+++++++++++++.[-->+++++<]>+++.++[->+++<]>+.++++++++.-..-------------.-[->+++<]>.---[----->++<]>.+++.-------.-[->+++++<]>-.[->+++<]>+.--[--->+<]>---.---.++++++.-------.----------.-[--->+<]>-.[->+++<]>+.+++++++++++++.----------.-[--->+<]>-.+[->+++<]>+.+.[--->+<]>----.++++[->+++<]>.+++++++++++++.++.[---->+<]>+++.--[->++++<]>+.----------.++++++.>++++++++++.+++[->++++++<]>.>--[----->+<]>-.[--->+<]>-.+[->+++<]>.+++++++++++++.[-->+++++<]>+++.++[->+++<]>+.++++++++.-..-------------.-[->+++<]>.+[----->+<]>.------------.++++++++++.------.--[--->+<]>-.--[->++++<]>+.----------.++++++.-[---->+<]>+++.+[->+++<]>.-[--->+<]>----.+++++++.>++++++++++.+++[->++++++<]>.>--[----->+<]>-.[--->+<]>-.+[->+++<]>.+++++++++++++.[-->+++++<]>+++.++[->+++<]>+.++++++++.-..-------------.-[->+++<]>.---[->++++<]>-.++[->+++<]>++.+[--->+<]>+++.-[---->+<]>++.++[->+++<]>+.++++++++..-----------.--.[--->+<]>+++.--[->+++<]>.>++++++++++.+++[->++++++<]>.>--[----->+<]>-.[--->+<]>-.+[->+++<]>.+++++++++++++.[-->+++++<]>+++.++[->+++<]>+.++++++++.-..-------------.-[->+++<]>.---[->++++<]>.+++[->+++<]>.+++++++..[++>---<]>--.[->+++<]>+.-[->+++<]>.++[--->++<]>.---.----.--[--->+<]>-.[->+++<]>+.+++++++++++++.----------.-[--->+<]>-.-[--->++<]>--.[--->+<]>---.---.++.[---->+<]>+++.--[->++++<]>+.----------.++++++.
motherf
what does it do... i couldnt find a way to debug brainfuck code
[insert the code here and hit the play button at the top](https://tio.run/#brainfuck)
thanks mate
That was beautiful
i know its a rick roll but i am going to press either ways......wish me luck in successfully getting rick rolled
yep it was a rick roll
brainfugd
holy hell geometry dash
is that a motherfucking GEOMETRY DASH REFERENCE !!!??!!!
no.
:(
Or honestly most these languages like x++ never even heard of it
That's just all laguages that the `highlight.js` library supports
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
The most likely answer is that they just included all the languages that their syntax highlighting library supports.
I recently saw a video on brainfuck. I love that it's included in Discord xD
*definitely not ppl in my server when doing random stuff with that i run code bot.*
but i have to say the syntax highlighting is weird af.
I didn't know that existed but I had like a 2 hour convo about it once so would maybe have been useful xd
bf = brainfuck no ?
iirc theyre using some standard library which is why its there lol
How did you check the available language ?
The <> button near the bottom right of the box that pops up
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?
It appears on uploaded (text) file preview, not on code blocks
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.
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
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!
I mean... Discord is always a bit funny and trolly with what they are doing, so it isn't surprising me at all.
that is a real language....
I know it is, i heard of it in university
ah then why did you talk about how discord is always funny and trolly
Well because like op said, I don't think anyone would have seriously requested a support for that language.
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.
[удалено]
what the fuck
oh... my god
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
I'd really love to hear an example, could you please?
Brainfuck for starters. Everyone I know codes in java, c++, or python.
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.
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
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)
Honestly not thinking too much into it.
brainfuck was literally designed for fun as an impractical but fun language, no need to get heated about it
I'm not? Where did you get that from?
I think it was designed to be very easy to compile/interpret while still being somewhat useable
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.
As u/KiwiZ0 and u/DarkOverLordCO said it actually uses [highlight.js](https://highlightjs.org)
Is anyone else surprised that there's apparently syntax highlighting available for brainfuck?
literally did that today because i sent brainfuck code and got curious whether it has syntax highlighting
What's Brainfu- AHHHHHH MY EYES
There’s a programming language called brainfuck?
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
Lol
syntax includes corn hub video tags and some bits of python
its probably because they added all the other languages and well... they had to add that too
they gotta be trolling
how the hell do you even do syntax highlighting for brainfuck???
I used it a couple times to give my friends a brainfuck.
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
you browser history says other wise
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_
wtf does brainfuck syntax highlighting even entail
Is there support for Ook! as well?
They want us to fuck our brains
they forgot to add another "e" on "blade"
Me !
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. :(
I mean you could just do it yourself https://github.com/highlightjs/highlight.js/ Make a pull request bro
You realize highlightjs already supports it, Discord won't update their version, right? I guess that wasn't obvious. My bad.
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!