-12

I want an option to render blocks of code found in questions and answers, with ClangFormat, so I can read the C++ and C code in the style I deem appropriate.

  • Jannies, is this a duplicate?: C is not supported by highlighting. – Rob Jan 2 at 17:43
  • @Rob Definitely no. Clang-format would allow you to view code how you are used to viewing it. Has little to do with syntax highlighting. – Jannies - They do it for free Jan 2 at 18:03
  • 1
    The reasoning for this feature request is basically none because what you deem appropriate is not what we deem appropriate (please read How do I write a good feature request?). Also, just FYI, all of us here are just users who don't have the privilege to modify the source code of this site. Only limited SE devs can implement it. – Meta Andrew T. Jan 2 at 20:55
  • @MetaAndrewT. the We can be pretty cliquey. Oh well; they do it for free. Kind of amazing when you think of it. Thanks for advice ill read it. – Jannies - They do it for free Jan 2 at 21:22
7
  1. Copy the code in the post
  2. Paste it in your favorite IDE
  3. Format the code according to your personal settings
  4. Profit!

No need to bother the Stack Exchange developers with this, if you ask me ...

  • Doing that would take like half an hour. This could be programmed in less time than that. – Jannies - They do it for free Jan 2 at 17:11
  • 6
    It'd take me five seconds to follow those steps. Why 1) do you think it takes so long 2) do you expect the devs can do it much faster? – Glorfindel Jan 2 at 17:13
  • 5 seconds? You are clearly inexperienced if you believe that you are going to edit the html code and have it display clang-formatted code from your ide, with syntax highlighting and everything, in less than 5 seconds. – Jannies - They do it for free Jan 2 at 17:16
  • 5
    You don't need to edit the HTML code at all. I don't have experience with clang itself, but I'm pretty sure the main IDEs have plugins for it. (If you're using Notepad to code, you're out of luck...) And even if they wouldn't, why do you expect the developers can implement it as a site feature in less time than it would take you to do it for a single case? – Glorfindel Jan 2 at 17:22
  • How do you get SO to display your clang-formatted code without editing the HTML? And if you know what you are doing, it could be done in 30 minutes. Its really that easy. – Jannies - They do it for free Jan 2 at 17:26

Not the answer you're looking for? Browse other questions tagged .