Position of the inline code formatting icon on the toolbar in the reply box

  • Suggestion
  • Thread starter Wrichik Basu
  • Start date
  • #1
1,438
1,300

Main Question or Discussion Point

I tend to use inline code formatting ([ICODE]...[/ICODE]) quite a lot. Unfortunately, the icon is placed inside a drop-down menu after the code-block icon on the toolbar above the reply box. Can this be placed on the surface instead by replacing any other icon? For example, I haven't seen many posts that use text colour, so that can be replaced by the inline code icon.

A poll can be opened to find out whether all members are comfortable with this change.
 
  • Like
Likes Greg Bernhardt

Answers and Replies

  • #2
berkeman
Mentor
57,694
7,728
What do the ICODE tags do? I've never used them. Can you give an example? Thanks. :smile:
 
  • #3
Ibix
Science Advisor
Insights Author
6,610
5,371
Icode tags put code fragments inline in a paragraph.
 
  • Informative
Likes berkeman
  • #4
berkeman
Mentor
57,694
7,728
But how do you specify which language the Icode encoding should be for? IMO, that's one of the features of code tags.

Testing: What is the difference between starting a frame in Tcl . configure -width 600 -height 600 and in Python/Tk mainframe = ttk.Frame(root, padding="3 3 12 12") ?

Code:
. configure -width 600 -height 600
Python:
mainframe = ttk.Frame(root, padding="3 3 12 12")
Interesting ... Tcl is not a standard code tag language selection...
 
Last edited:
  • #5
1,438
1,300
But how do you specify which language the Icode encoding should be for?
You don't need to specify a language. ICODE tags are generally used for small words or expressions; for full statements, it is better to use CODE tags.

Consider the following snippet:
In Android, an Intent is used to pass messages. They may be used to start an activity, service or send a broadcast using the startActivity(), startService() or sendBroadcast() methods. Note that if you intend to use any of the above methods from a Fragment, you have to call them using requireContext(), as a Fragment does not have its own Context:
Android:
requireContext().startActivity(intent);
Now consider writing the above with CODE tags everywhere instead of ICODE tags:
In Android, an
Android:
Intent
is used to pass messages. They may be used to start an activity, service or send a broadcast using the
Android:
startActivity()
,
Android:
startService()
or
Android:
sendBroadcast()
methods. Note that if you intend to use any of the above methods from a
Android:
Fragment
, you have to call them using
Android:
requireContext()
, as a
Android:
Fragment
does not have its own
Android:
Context
:
Android:
requireContext().startActivity(intent);
You can see that the second snippet doesn't look good. ICODE tags simply change the font of the text to monospace, and thus highlight code keywords in a paragraph.
 
  • Informative
  • Like
Likes berkeman and Ibix

Related Threads on Position of the inline code formatting icon on the toolbar in the reply box

  • Last Post
Replies
11
Views
1K
  • Last Post
Replies
3
Views
1K
Replies
5
Views
779
Replies
1
Views
534
Replies
7
Views
3K
  • Last Post
Replies
2
Views
1K
  • Last Post
Replies
12
Views
2K
  • Last Post
4
Replies
82
Views
9K
  • Last Post
Replies
8
Views
276
Top