# Icon isn't working for entering sourcecode into a posting

I have programmed a chatbot which can enter sourcecode on AI.stackexchange. The problem is that the button for insert a codesnippet doesn't work, because the chatbot isn't able to find the correct location of the icon. Is it possible to use a different HTML form than the normal one of Stackexchange to simplify the edits?

original message

I just noticed something in AI stackexchange. Apparently we cannot insert pieces of code in the question or the answer i.e the java-script/HTML/CSS snippet. Why so?

I understand this site does not try to entertain implementation details, but still it would be a useful feature to have, to write algorithms in a beautiful way. What is the community's opinion on this and what should be done?

• @ManuelRodriguez I think it might have been better to simply create a new question, rather than editing DuttaA's older question to suddenly turn it into something completely different... That said, you can format blocks of code (without syntax highilighting or anything like that) simply by putting 4 extra spaces in front of every line. Putting it in between <pre></pre> or <pre><code></code></pre> tags may also work. Also see meta.stackexchange.com/q/22186/376651 – Dennis Soemers Aug 23 '18 at 8:09
• @Dennis I'm trying to understand what the OP is about. DuttaA wrotes “Apparently we cannot insert pieces of code in the question or the answer i.e the java-script/HTML/CSS snippet.” but he can use the pre-tag for the java-script snippet too, isn't it? – Manuel Rodriguez Aug 23 '18 at 8:15
• @ManuelRodriguez i do not use math notations so i don't know if you are talking about that..but i found a way to go around by simply copying the header and footer from SO – DuttaA Aug 23 '18 at 8:18
• @DuttaA Ah, you save a Stackoverflow URL as a HTML file on the local harddrive and embedded this into a pdf document for publication. Clever idea. So you had problems with exporting the sourcecode from the SO website? – Manuel Rodriguez Aug 23 '18 at 8:28
• @ManuelRodriguez LOL no..i just copy the header and enders which follow a code snippet on SO which makes it a code snippet here – DuttaA Aug 23 '18 at 8:51
• @DuttaA I see, we are understanding each other very well. Greetings to India (according to the profile page this is shown as your timezone) – Manuel Rodriguez Aug 23 '18 at 9:34