Coloured code blocks

コメント

54件のコメント

  • TimeTravelPenguin

    Here is a mock image I made. I really hope this gets added, soon!

    13
  • jspp

    Colored code blocks on mobile would be an amazing addition and move Discord one step further to being a great platform not just for gamers, but also for developers.

    10
  • circuit10

    My mockup thing:

    Normal:

    8
  • isobellavt

    Adding another vote on this in the hopes it becomes a reality.

    This would be a great addition for both coders and non-coders that use code blocks for their server rules and similar. Right now the code blocks are bland and dull on mobile. Plus its hard to properly use a code block on mobile when you aren't 100% sure what it looks like on desktop lolz

    7
  • jTurp

    Likewise, I’d really like to see this on iOS! It’s such a pain to read code without it on mobile!

    6
  • SnowFlake
    That would be very nice, I do feel like it's a needed change
    6
  • Elite

    This would be a great help to the majority of servers I'm a part of - There are times where tons of individuals in these servers don't have access to their desktop, and need quick coding advice, on the go!

    Well what if the people answering are also "on the go"?

    The syntax being gray, instead of color-coordinated makes it difficult to read when you're on the phone, and it makes it that much more difficult for individuals to easily assist others as efficiently.

    ---

    This post gets a +1 from me

    5
  • Alexis

    yeah that would really be nice!

    Mobile deserves same chances as desktop ;p

    4
  • georgewl

    The mobile app still hasn't got colours on code blocks, even though I know the module to do so is less than 12kb in size and runs on basically everything.

    4
  • veksen

    May the PO pull it to the top of the backlog :D

    It is much needed for the programming communities that are ever growing on Discord.

    4
  • DEM0N194

    Wouldn't be the code needed for this feature be almost the same as for desktop? What's taking you so long?

    4
  • WhoNeedszZz

    Is it too much to ask for Discord support to actually respond to these requests? As mentioned, adding the functionality is trivial and this is now a year old. What's the excuse for why there isn't a major feature parity between desktop and mobile. Programming communities are growing steadily on Discord, but not being able to read the code blocks on mobile is a major problem. I've been a major supporter of Discord since the beginning, but things like this makes me not want to take it seriously for a programming community.

    4
  • circuit10

    Notice that text size is a bit smaller so you can see more code, word wrap is off and it has syntax highlighting

    4
  • Elite

    @circuit10 I like the scroll option, however I think it would be a more reasonable approach to adapt it based on screen size, instead of forcing it on device type - Either way, it would fix word wrap issue, but it doesn't add a scroll bar, unless it absolutely needs to.

    4
  • Veit.dev

    Hey 👋,

    Same problem with code highlighting:



      (P.s swift is not really swift like highlighted 😔 )

    3
  • ÜberUser

    This would definitely be a marked improvement, and hopefully not too complex to implement given the existing framework for the desktop client. Giving this a +1 in the hopes that the Discord devs pick up on this thread :)

    3
  • JaAnton

    This is really a problem. Code blocks exists for a reason.

    3
  • circuit10

    Also word wrap should be disabled so you can scroll instead

    3
  • circuit10

    Made a (slightly) interactive demo (works best on mobile or a resized window):

    https://mobile-code-mockup.heathmitchell1.repl.co/

    3
  • Blake 🧙♂

    PLEASE DO THIS SOON

    3
  • veryfoodverygood

    please add this!

    2
  • bash

    +1 for sure. Neither mobile apps have syntax highlighting and would be a much welcomed feature.

    2
  • Blake 🧙♂

    Second and third this

    2
  • Blake 🧙♂

    +1 +1 +1

    2
  • blockingthesky

    Bump. I use Discord for communicating with my programming team and teaching students sometimes, so I send a lot of snippets. I mostly use desktop so I didn't realize until today there's no highlighting on mobile; however I know lots of my friends use mobile to read those messages.

    The syntax highlighting helps a lot to make it readable on the smaller screen. A few extra colors go a long way! Thanks for all you do, Discord team.

    2
  • MindTooth

    Recently got myself an iPad Pro, and being a student who share a lot of code.  Not having the syntax highlight on iPad is a major regression of functionality.

    2
  • Blake 🧙♂

    This is true!!

    2
  • TimeTravelPenguin

    I have been following this post for 3 years. As a developer and University student, COVID demands accessibility and long-distance communication. Unfortunately, there has been no feedback from what I can tell.

    Having this feature would greatly improve my personal experience, especially on my iPad, which I use as a study device, and often communicate code between my classmates. On iOS/iPad especially, the code blocks are incredibly horrendous and unreadable. Slack has a significantly better experience for this feature, even though it sends code as a file, rather than in-message.

    Having a functional way to communicate code is a must for the platform, with the expansion of the userbase. I hope to see this feature added sooner rather than later, as I have been waiting THREE YEARS.

    2
  • DEM0N194

    Bump, I'd love to have syntax highlighting on mobile as well

    1
  • DEM0N194

    +1 I hope this feature gets implemented soon ... It can't be that hard

    1

サインインしてコメントを残してください。