How to quickly format programming codes in the GitHub's Issue? - github

If I create an issue with some codes in the gitHub, how to format it?
I have to add more white spaces again and again......
Is there anything like what we can see in the StackOverFlow by clicking "Code Sample" button?

Simply wrap the code with the fenced code block delimiters.
```
here is
the
code
block
```
You can also specify a language.
```ruby
puts "hello"
```

Related

VS Code Remove Sidebar Titles Symbols

Good morning.
In a markdown file, is it possible to remove the title icons (#, ##, ###, ####) in the sidebar?
They are really annoying. Spaces are enough to indicate the level of text.
Thank you.
https://ibb.co/XYRdwzz
As of v1.61.1, this is not possible.
However, there is an open issue about this on VS Code's official GitHub:
https://github.com/microsoft/vscode/issues/53992
There are proposals for a solution already. Maybe someone might pick this up and implement a configuration option for it.

VS Code - HTML tag wrapping issue

Is there a way to make VS Code stop breaking HTML tags before > on a new line? As you can see on the picture the tag is breaking/wrapping on a next line just after the > . I'm Using Prettier - Code formatter.
You could try adding this line to your settings.json file
{
"html.format.wrapAttributes": "force-aligned"
}
I know this is old, but for those who have the same problem, have you checked to ensure that your document is being treated as HTML rather than something else? I've seen this happen when I format my HTML code in a Javascript document.
On the bottom-right of the VS Code window, after Tab Size, UTF-8, and CRLF (your options may be different) you should see HTML. If you see Javascript, CSS, or some other code language, you'll need to click it and change it to HTML.

How to add code snippets in Microsoft Word

I am trying to add code snippets in Microsoft Word for my final thesis.
The image below is the sample. I want to ask how to add these kind of code snippets in a word document.
I found the following here.
Here is the best way, for me, to add code inside word:
go to "insert" tab, click "object" button (it's on the right)
choose "OpenDocument Text" which will open a new embedded word document
copy and paste your code from Visual Studio / Eclipse inside this embedded word page
save and close
The result looks very nice. Here are the advantages of this method:
the code keeps its original layout and colors
the code is separated from the rest of the document, as if it was a picture or a chart
spelling errors won't be highlighted in the code (this is cool !)
And it takes only few seconds.
If you are simply looking to format text like your example apply the Block Text paragraph style. You may need to modify the style to add the background colour you want. Whilst modifying the style you can also tell Word not to check spelling or grammar for all instances of that style as shown below.

Editing the font and style of the text in the instructions box in MIT Scratch project page

The problem: How do I change the font in the instruction text box in an MIT Scratch project page. For example: make a line of text standout in bold. I believe it maybe done through editing the html code that is behind the box as I found a read only editor button that displays the code for the box. Unlike say a cell in Ipython you cannot simply surround text with tags. It seems such a simple problem but I have not found the solution yet.
Sorry, you can't do it.
The only thing you can do is to search for special font-characters and paste them in the Instruction text-box
For a day or two fairly recently this was allowed from a bug, but that bug was fixed and it's now impossible.
It's possible to change the HTML code, but that changes would only seen by you, and nobody else. There isn't a way to do it.

Monospaced Font w/out Syntax Highlighting in Github Flavored Markdown

The title pretty much says it all: I'd like to write a paragraph in monospaced font using GFM, but without any programming language's syntax highlighting. I'd think it would be
```txt
or
```text
or maybe nothing:
```
But no luck. Is this even possible with GFM?
Try indenting with four spaces (i.e. a normal markdown code block) rather than using a fenced code block. This worked for me in GitLab. In GitHub just ``` worked.