We will be migrating from Ask to Discourse on the first week of August, read the details here

Ask Your Question

How to enter code in a post here so it looks structured? [closed]

asked 2017-05-11 21:58:51 +0200

inJesus gravatar image

The symbol 101010 or Ctrl K are not working here.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2020-10-03 22:44:44.249255

1 Answer

Sort by » oldest newest most voted

answered 2017-05-11 23:37:23 +0200

librebel gravatar image

updated 2017-05-12 02:22:51 +0200

Hello @inJesus, to format a part of your answer or comment as code, do this:

1) Select the text that you want to format as code,
2) Press the small button "101" above ( 5th button from the left )

(Edited: removed possibly offensive word)

edit flag offensive delete link more


Where shall I drag it? When I drag it isn't it selected already?

inJesus gravatar imageinJesus ( 2017-05-12 00:45:13 +0200 )edit

Don't drag it anywhere - just use your mouse to highlight it. That is what librebel means by drag.

robleyd gravatar imagerobleyd ( 2017-05-12 01:39:34 +0200 )edit

Thank you.

Thus I paste here, select it and push the button:

No command 'code' found, did you mean:
 Command 'cdde' from package 'cdde' (universe)
 Command 'node' from package 'nodejs-legacy' (universe)
 Command 'tcode' from package 'emboss' (universe)
 Command 'ode' from package 'plotutils' (universe)
 Command 'cde' from package 'cde' (universe)
 Command 'cobe' from package 'python-cobe' (universe)
code: command not found

Seems to work.

inJesus gravatar imageinJesus ( 2017-05-12 10:26:49 +0200 )edit

Question Tools

1 follower


Asked: 2017-05-11 21:58:51 +0200

Seen: 81 times

Last updated: May 12 '17