The tag has no wiki summary.

learn more… | top users | synonyms

5
votes
1answer
47 views

Indicator for width (length of lines) in code boxes

It is generally agreed that posted code is best formatted so that the horizontal scroll is not required for the code box in most cases and for most users. I have conducted surveys here and on Meta ...
1
vote
1answer
48 views

Toggleable Code Blocks [duplicate]

One nice feature would be if the source code was automatically hidden when the question is too big, and clicking on something be able to make the code visible. In this question people are asking a ...
9
votes
1answer
111 views

1st post rejected: “Your post appears to contain code that is not properly formatted as code”

Trying to post answer to this question: WinDbg x64: Cannot debug a crash dump - failed to load data access DLL Get this message: Your post appears to contain code that is not properly formatted ...
6
votes
1answer
73 views

Syntax highlighting when viewing code in Android app

When I view question/answer, you can see the code blocks with syntax highlighting. But if I click on the code block to be able to horizontally scroll, all syntax highlighting is lost and the text ...
2
votes
1answer
98 views

Allow code snippets to use more screen width

I understand, from reading other Meta questions on this topic, that the StackOverflow administrators have good reasons for keeping the site to a fixed-width layout. However, one disadvantage of this ...
1
vote
0answers
19 views

Should log snipplets and firebug header dumps be wrapped in code block?

Should the log fragments and firebug traffic dumps be wrapped in code block instead of quote block? I was used to wrap them in quote blocks, which sounds more intuitive for me, but recently I wasn't ...
-1
votes
1answer
74 views

Should code blocks and images be collapsible [duplicate]

Should they be collapsible? Sometimes, users will paste a lot of different blocks of code because they don't know where the problem is. Which makes it hard for the rest of the community to read the ...
-7
votes
1answer
178 views

Should Stackexchange switch to ACE Editor?

There is an Open Source code editor called ACE. It is used in Github gist right now. One feature they have that I love is box shaped text selection. (ALT+Click drag to use) This is hyper-useful ...
9
votes
0answers
127 views

Code blocks are not explained in chat faq

While looking over the stackoverflow chat faq I noticed that it does not explain how to use code blocks when multi line is used. It would be nice if there was a little description for users about ...
-1
votes
1answer
69 views

How to fix a single character typo in a code sample? [duplicate]

I just wanted to fix a code sample which had a single character missing. However I can't do this because the minimum edit is 6 characters. Can we make the checker smarter by allowing single character ...
1
vote
1answer
68 views

How can I write nested code on a nested list with markdown? [duplicate]

I need to write a nested code block on a sub element of a list. My list look like 1. element 1 1. element 2 1. element 3, this has subelements 1. sub element 1 1. sub element 2 this one ...
8
votes
1answer
119 views

Pound Sign not in a code block causes layout issue

I ran across this post which was originally posted with the error message/log details that were not placed in a code block. Before it was in a code block, it caused the text to overflow to the right ...
7
votes
2answers
84 views

“Select all” for code blocks [duplicate]

Frequently I've found it necessary to highlight an entire code block (usually to copy elsewhere): here is code here is more code here be dragons but the only way to do it seems to be to highlight ...
35
votes
2answers
291 views

Code block tools

It would be great to add some "tools" to code blocks. For example: Select all Copy to clipboard Expand Collapse I also think sometimes a code block is just too big and it would be nice to ...
0
votes
2answers
85 views

<code> tag doesn't text highlight

I noticed the other day that two nearly identical answers to a question were slightly different. The first one (the accepted answer) uses four spaces. The second answer (highest non-accepted answer, ...
0
votes
0answers
32 views

Fiddel-style sandbox [duplicate]

Possible Duplicate: Custom jsFiddle for Stack Overflow I've noticed that more and more questions use fiddel to demonstrate their problem, and more and more answers have links to a fiddel as ...
0
votes
1answer
79 views

Bold / Italics in codeblocks [duplicate]

Possible Duplicate: Bold code in a question Allow highlighting certain bits of a code fragment or quote Am I missing something? Can one not put either bold or italics inside codeblocks / ...
0
votes
2answers
67 views

Should code segment edits be allowed?

There's an answer here which could benefit from the code being in a code segment, but I can't modify it because it's only whitespace characters. Even changing the "$3" to be $3 is only two ...
0
votes
0answers
30 views

“Code sample” button not working with (numbered) lists [duplicate]

Possible Duplicate: Can the code button in the format bar be made to work for code blocks in numbered lists I want to use a code block in a list. But the code block does not get rendered ...
0
votes
1answer
97 views

How can I add a scrollbar to a code block?

How can I add a scrollbar to a code block when the code has long lines? For an example, look at the code block of this question.
19
votes
2answers
197 views

Way to expand code block

Is there a way for a reader (not the OP) to expand a scrollable window containing source code in a question? I sometimes have difficulty understanding a block of code because I can't see it all at ...
0
votes
1answer
289 views

How to escape the angled brackets (“<”, “>”) in a code block?

Writing a question including a C code in a <pre><code> block, I found out that in my #include lines the header names are not displayed when using the standard <name.h> convention. ...
-6
votes
1answer
101 views

Make use of full screen width (sample code in Safari) [duplicate]

Possible Duplicate: Can SO have a fluid vs. fixed-width layout? Please add the ability to fold blocks of code in questions and answers I use Safari, and quite often the right part of code ...
6
votes
1answer
135 views

Encourage Questions to Include Code Samples

I know this has been noted before, but it's amazing how often people ask questions about code that's not working without sharing the code. And when they share code, it's often insufficient (which ...
3
votes
3answers
246 views

How can I use 'code blocks' for individual words?

I have seen users use code blocks Such as this in many posts, but in the middle of a sentence only on one word. I can't for the life of me figure out how they did it. Surprisingly, I searched ...
1
vote
0answers
127 views

Highlighting same string in code blocks on selection of a string

This is a feature request for SO sites. I would like to have highlighting of all strings which match the selected string in code examples. A number of IDEs and editors have a facility where if I ...
2
votes
0answers
98 views

Print a stackoverflow page with long code block cropped

The long code block will be stored in a scroll-able box. And printing will crop the code. A workaround is switching to mobile view (by click the "mobile" at the bottom of the page). However, it ...
12
votes
0answers
140 views

Why is the code syntax color highlight gone in the mobile view?

The code block on a phone or tablet is only black/white. Update: example The code in the following link will have syntax color highlight in desktop browser. MVP Framework for winforms Here is the ...
10
votes
2answers
770 views

Using Safari 5.1.4, code blocks are empty on Stack Overflow

Code blocks on Stack Overflow (lines beginning with 4 whitespaces) with Safari v5.1.4 are empty/blank (even with the inspector, indicating it's populated via javascript). If I use another browser ...
-7
votes
2answers
122 views

Add a check to make sure a question doesn't start with code

Came across this today how can i check the time and date are available using sql in jsp? cry Can a check not be added so that questions are not allowed to be asked if they start with code and/or must ...
3
votes
0answers
89 views

Add “view as text” option for code, to circumvent copy/paste problems

When you go to 'copy' code from any of the pages, then 'paste' it in Notepad (or another text editor), it all comes out on one line, and has to be re-formatted. Did the designers ever think of ...
-8
votes
2answers
179 views

Warn user when their code is larger than 80 characters

Scrolling horizontally is hard. Warning someone that posts code that is larger than 80 characters against the readability problem this causes would be a solution to avoid then from the start.
1
vote
1answer
78 views

Font adjustment for certain parts of Stack Overflow

The Consolas font, which the CSS sets as the preferred font for the code blocks on Stack Overflow, looks exceedingly terrible on my machine (it's my favourite font on Windows, but on Linux... blech). ...
-6
votes
2answers
149 views

Provide a means to not “scrollbar” code that's only a few lines too long

Many times I enter code into SO questions and answers (obviously!) that is only a little bit longer than the threshold that will activate the right-side scroll bar. This makes it rather annoying that ...
2
votes
1answer
107 views

Should we have code block feature in chat?

I was trying to explain a part of a code through chat, and I noticed that there was no way to post code blocks in the chat interface. Although I agree that large codes are rarely posted in the chat ...
5
votes
0answers
94 views

The bug that won't go away: “all code” questions are *still* possible

I just saw yet another question which is just a huge block of code. How did this get around the upgraded filter? The entire body of the question is here: public class ArrayDuplicates { ...
1
vote
1answer
44 views

Is there a way to make the text in the code section highlighted? [duplicate]

Possible Duplicate: Bold code in a question I have seen this question, which is very old (december 2009). Are there any updates to it? Is it now possible to mark a line in the code ...
8
votes
0answers
53 views

Please make blockquotes more visually distinct from code blocks on SO [duplicate]

Possible Duplicate: Improving Blockquote style This is a small request only, and easy to do. :) Currently blockquotes and code blocks are rendered as virtually indistinguishable gray ...
2
votes
2answers
75 views

Why are the colors in code formatting sometimes wrong?

The third code block in this question has the right colors - attribute names are red and the values are blue; whereas in this other question colors for the same tokens are black and brown, why is ...
1
vote
1answer
92 views

Code block scrolls to where there is no content

I'm not sure if this is possible to fix, but I'll describe it anyway. On a question Calculate correct values to use in layout_weight? if I press my mouse's scroll button down on the code block, I can ...
11
votes
1answer
240 views

How to handle regex syntax highlighting?

Many questions about regex include code blocks with language agnostic, POSIX compatible patterns, using default prettifying. (example) This looks kind of ugly and is confusing, since some parts are ...
-4
votes
2answers
224 views

Code block not escaping html?

Consider the following code block: #include It's only showing #include, but what I've typed in the code block is #include <yajl/yajl_parse.h>. So, the < is not being escaped properly. ...
2
votes
0answers
77 views

Start new lines of code block with same indent as previous line [duplicate]

Possible Duplicates: Automatic code reindent button AutoIndent of Source Code I realize that you can already indent code blocks with the 'code sample' button or ctrl+K, but that's ...
2
votes
2answers
144 views

Seeing code text in bold or regular fonts

Is it possible to make an option in user prefs to turn off seeing code text in bold for people who aren't used to or want to read it as a bold text? Here's what I see in FF4 on Windows XP SP3
2
votes
0answers
67 views

Why does a code block with a horizontal scroll bar get so tall? [duplicate]

Possible Duplicate: Code that is too long to display on a single line creates a massive vertical code block I just recently noticed that when a code block gets a horizontal scroll bar in ...
15
votes
1answer
309 views

Code that is too long to display on a single line creates a massive vertical code block

If you write some code on one line which is too long for the code block to display in one, it usually, if I remember correctly, would just add a scroll bar to the bottom. Seemingly this has changed as ...
0
votes
2answers
88 views

Resizable text blocks?

Ever since I've updated from Firefox 3.6 to Firefox 4, I love how many of the big text input blocks can be resized. Adding comments doesn't have to feel so cramped and editor windows could be widened ...
3
votes
2answers
103 views

Post `\` or `\\` in a comment

I wanted to add to an answer that \ should be escaped but I didn't manage to put this in a comment. When I did: `\` then it didn't display the \, and: `\\` causes it to only display one \ ...
-5
votes
1answer
356 views

how to put code [duplicate]

Possible Duplicate: How do I format my code blocks? hey!! how do i put my code in this question window... am new to this i donno, pls help...
5
votes
1answer
180 views

Long code snippets that are relevant to the question

Sometimes there's need for including large chunks of data/code in a question. (See comments to the question: the OP tried to include a couple of long XML files, but that wasn't possible.) What's the ...