Использовать

 tag for multiple lines of code. Once again, be sure to escape any angle brackets in the code for proper rendering. You may optionally add.

                            
                        <br />
<strong>JavaScript-код</strong><br />
[code lang="js"]<br />
function general() {<br />
$(&#039;.collapse-btn&#039;).on(&#039;click&#039;, function (e) {<br />
e.preventDefault();<br />
$(this).toggleClass(&#039;active&#039;)<br />
$(".collapse-wrap").slideToggle(500);<br />
});</p>
<p>$(&#039;.short-by a&#039;).click(function () {<br />
$(this).toggleClass(&#039;active-short&#039;).siblings().removeClass(&#039;active-short&#039;);<br />
});<br />
}<br />
                    
                            

ru_RUРусский