The\ `code'\ Mode\n\nIntroduction\nThe\ code\ mode\ of\ jedit\ is\ intended\ for\ editing\ program\ code\ for\ which\ there\ isn't\ a\ specific\ mode.\ \ (Currently,\ the\ only\ kind\ of\ program\ code\ for\ which\ there\ is\ a\ specific\ mode\ is\ Tcl\;\ see\ The\ `tcl'\ Mode.)\n\nThis\ document\ describes\ the\ code\ mode\ available\ with\ version\ 4.0/4.0b\ of\ jedit.\n\nPreferences\nThe\ only\ differences\ between\ code\ mode\ and\ plain\ mode\ are\ in\ the\ default\ mode­specific\ preferences.\ \ Specifically:\n\n*\ Long\ lines\ will\ wrap\ on\ character\ boundaries\ rather\ than\ only\ between\ words.\n\n*\ Long\ lines\ will\ not\ automatically\ have\ newlines\ inserted\ as\ you\ approach\ the\ right\ margin.\n\n*\ When\ you\ press\ Return,\ whitespace\ is\ inserted\ for\ you\ at\ the\ beginning\ of\ the\ new\ line\ to\ match\ the\ indentation\ on\ the\ preceding\ line.\n\n*\ When\ you\ type\ a\ `\}',\ `\]',\ or\ `)'\ character,\ the\ corresponding\ `\{',\ `\[',\ or\ `('\ character\ is\ flashed\ briefly.\ \ (If\ there's\ no\ matching\ opening\ character,\ the\ whole\ window\ will\ flash.)\n\nFor\ a\ list\ of\ filename\ and\ first­line\ patterns\ that\ cause\ files\ to\ be\ edited\ in\ code\ mode,\ see\ the\ Editing\ Modes\ section\ in\ The\ jedit\ Text\ Editor.\n\nSee\ Also\n\tThe\ `tcl'\ Mode\n {{{sel {6.61 6.69}} {jdoc:xref:link {4.17 4.22 4.189 4.203 19.99 19.112 19.124 19.145 22.1 22.15}} {jdoc:anchor:anchorname {3.0 4.0 8.0 9.0 21.0 22.0}} {richtext:font:roman {2.0 3.0 4.0 4.4 4.8 4.17 4.22 4.158 4.160 4.189 4.203 6.28 6.32 6.73 6.78 8.0 9.0 9.29 9.33 9.43 9.48 13.18 13.21 15.17 15.23 17.19 17.20 17.24 17.25 17.32 17.33 17.65 17.66 17.70 17.71 17.78 17.79 19.80 19.84 19.99 19.112 19.124 19.145 21.0 22.0 22.1 22.15 23.0}} {richtext:font:italic {4.158 4.160 13.18 13.21}} {richtext:font:bold {15.17 15.23}} {richtext:font:bolditalic {4.189 4.203 19.99 19.112 19.124 19.145 22.1 22.15}} {richtext:font:typewriter {4.4 4.8 4.17 4.22 6.28 6.32 6.73 6.78 9.29 9.33 9.43 9.48 17.19 17.20 17.24 17.25 17.32 17.33 17.65 17.66 17.70 17.71 17.78 17.79 19.80 19.84}} {richtext:font:heading0 {1.0 2.0}} {richtext:font:heading1 {3.0 4.0 8.0 9.0 21.0 22.0}} {jdoc:anchorname:Introduction {3.0 4.0}} {jdoc:link:jedit.jdoc {4.17 4.22 19.124 19.145}} {jdoc:anchorname:See_Also {21.0 22.0}} {jdoc:link:jeditmodes/tcl-mode.jdoc {4.189 4.203 22.1 22.15}} {jdoc:anchorname:Preferences {8.0 9.0}} {jdoc:link:jedit.jdoc#Editing_Modes {19.99 19.112}}} {{abbrevstart 17.80} {matchend 20.0} {abbrevend 17.80} {insert 6.69} {anchor 1.0} {matchstart 20.0} {current 1.0}}}