TextEdit.xml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="TextEdit" inherits="Control" version="3.2">
  3. <brief_description>
  4. Multiline text editing control.
  5. </brief_description>
  6. <description>
  7. TextEdit is meant for editing large, multiline text. It also has facilities for editing code, such as syntax highlighting support and multiple levels of undo/redo.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. <method name="add_color_region">
  13. <return type="void">
  14. </return>
  15. <argument index="0" name="begin_key" type="String">
  16. </argument>
  17. <argument index="1" name="end_key" type="String">
  18. </argument>
  19. <argument index="2" name="color" type="Color">
  20. </argument>
  21. <argument index="3" name="line_only" type="bool" default="false">
  22. </argument>
  23. <description>
  24. Adds color region (given the delimiters) and its colors.
  25. </description>
  26. </method>
  27. <method name="add_keyword_color">
  28. <return type="void">
  29. </return>
  30. <argument index="0" name="keyword" type="String">
  31. </argument>
  32. <argument index="1" name="color" type="Color">
  33. </argument>
  34. <description>
  35. Adds a [code]keyword[/code] and its [Color].
  36. </description>
  37. </method>
  38. <method name="can_fold" qualifiers="const">
  39. <return type="bool">
  40. </return>
  41. <argument index="0" name="line" type="int">
  42. </argument>
  43. <description>
  44. Returns if the given line is foldable, that is, it has indented lines right below it.
  45. </description>
  46. </method>
  47. <method name="center_viewport_to_cursor">
  48. <return type="void">
  49. </return>
  50. <description>
  51. </description>
  52. </method>
  53. <method name="clear_colors">
  54. <return type="void">
  55. </return>
  56. <description>
  57. Clears all custom syntax coloring information previously added with [method add_color_region] or [method add_keyword_color].
  58. </description>
  59. </method>
  60. <method name="clear_undo_history">
  61. <return type="void">
  62. </return>
  63. <description>
  64. Clears the undo history.
  65. </description>
  66. </method>
  67. <method name="copy">
  68. <return type="void">
  69. </return>
  70. <description>
  71. Copy's the current text selection.
  72. </description>
  73. </method>
  74. <method name="cursor_get_column" qualifiers="const">
  75. <return type="int">
  76. </return>
  77. <description>
  78. Returns the column the editing cursor is at.
  79. </description>
  80. </method>
  81. <method name="cursor_get_line" qualifiers="const">
  82. <return type="int">
  83. </return>
  84. <description>
  85. Returns the line the editing cursor is at.
  86. </description>
  87. </method>
  88. <method name="cursor_set_column">
  89. <return type="void">
  90. </return>
  91. <argument index="0" name="column" type="int">
  92. </argument>
  93. <argument index="1" name="adjust_viewport" type="bool" default="true">
  94. </argument>
  95. <description>
  96. Moves the cursor at the specified [code]column[/code] index.
  97. If [code]adjust_viewport[/code] is set to [code]true[/code], the viewport will center at the cursor position after the move occurs.
  98. </description>
  99. </method>
  100. <method name="cursor_set_line">
  101. <return type="void">
  102. </return>
  103. <argument index="0" name="line" type="int">
  104. </argument>
  105. <argument index="1" name="adjust_viewport" type="bool" default="true">
  106. </argument>
  107. <argument index="2" name="can_be_hidden" type="bool" default="true">
  108. </argument>
  109. <argument index="3" name="wrap_index" type="int" default="0">
  110. </argument>
  111. <description>
  112. Moves the cursor at the specified [code]line[/code] index.
  113. If [code]adjust_viewport[/code] is set to [code]true[/code], the viewport will center at the cursor position after the move occurs.
  114. If [code]can_be_hidden[/code] is set to [code]true[/code], the specified [code]line[/code] can be hidden using [method set_line_as_hidden].
  115. </description>
  116. </method>
  117. <method name="cut">
  118. <return type="void">
  119. </return>
  120. <description>
  121. Cut's the current selection.
  122. </description>
  123. </method>
  124. <method name="deselect">
  125. <return type="void">
  126. </return>
  127. <description>
  128. Deselects the current selection.
  129. </description>
  130. </method>
  131. <method name="fold_all_lines">
  132. <return type="void">
  133. </return>
  134. <description>
  135. Folds all lines that are possible to be folded (see [method can_fold]).
  136. </description>
  137. </method>
  138. <method name="fold_line">
  139. <return type="void">
  140. </return>
  141. <argument index="0" name="line" type="int">
  142. </argument>
  143. <description>
  144. Folds the given line, if possible (see [method can_fold]).
  145. </description>
  146. </method>
  147. <method name="get_breakpoints" qualifiers="const">
  148. <return type="Array">
  149. </return>
  150. <description>
  151. Returns an array containing the line number of each breakpoint.
  152. </description>
  153. </method>
  154. <method name="get_keyword_color" qualifiers="const">
  155. <return type="Color">
  156. </return>
  157. <argument index="0" name="keyword" type="String">
  158. </argument>
  159. <description>
  160. Returns the [Color] of the specified [code]keyword[/code].
  161. </description>
  162. </method>
  163. <method name="get_line" qualifiers="const">
  164. <return type="String">
  165. </return>
  166. <argument index="0" name="line" type="int">
  167. </argument>
  168. <description>
  169. Returns the text of a specific line.
  170. </description>
  171. </method>
  172. <method name="get_line_count" qualifiers="const">
  173. <return type="int">
  174. </return>
  175. <description>
  176. Returns the amount of total lines in the text.
  177. </description>
  178. </method>
  179. <method name="get_menu" qualifiers="const">
  180. <return type="PopupMenu">
  181. </return>
  182. <description>
  183. Returns the [PopupMenu] of this [TextEdit]. By default, this menu is displayed when right-clicking on the [TextEdit].
  184. </description>
  185. </method>
  186. <method name="get_selection_from_column" qualifiers="const">
  187. <return type="int">
  188. </return>
  189. <description>
  190. Returns the selection begin column.
  191. </description>
  192. </method>
  193. <method name="get_selection_from_line" qualifiers="const">
  194. <return type="int">
  195. </return>
  196. <description>
  197. Returns the selection begin line.
  198. </description>
  199. </method>
  200. <method name="get_selection_text" qualifiers="const">
  201. <return type="String">
  202. </return>
  203. <description>
  204. Returns the text inside the selection.
  205. </description>
  206. </method>
  207. <method name="get_selection_to_column" qualifiers="const">
  208. <return type="int">
  209. </return>
  210. <description>
  211. Returns the selection end column.
  212. </description>
  213. </method>
  214. <method name="get_selection_to_line" qualifiers="const">
  215. <return type="int">
  216. </return>
  217. <description>
  218. Returns the selection end line.
  219. </description>
  220. </method>
  221. <method name="get_word_under_cursor" qualifiers="const">
  222. <return type="String">
  223. </return>
  224. <description>
  225. Returns a [String] text with the word under the mouse cursor location.
  226. </description>
  227. </method>
  228. <method name="has_keyword_color" qualifiers="const">
  229. <return type="bool">
  230. </return>
  231. <argument index="0" name="keyword" type="String">
  232. </argument>
  233. <description>
  234. Returns whether the specified [code]keyword[/code] has a color set to it or not.
  235. </description>
  236. </method>
  237. <method name="insert_text_at_cursor">
  238. <return type="void">
  239. </return>
  240. <argument index="0" name="text" type="String">
  241. </argument>
  242. <description>
  243. Insert the specified text at the cursor position.
  244. </description>
  245. </method>
  246. <method name="is_folded" qualifiers="const">
  247. <return type="bool">
  248. </return>
  249. <argument index="0" name="line" type="int">
  250. </argument>
  251. <description>
  252. Returns whether the line at the specified index is folded or not.
  253. </description>
  254. </method>
  255. <method name="is_line_hidden" qualifiers="const">
  256. <return type="bool">
  257. </return>
  258. <argument index="0" name="line" type="int">
  259. </argument>
  260. <description>
  261. Returns whether the line at the specified index is hidden or not.
  262. </description>
  263. </method>
  264. <method name="is_selection_active" qualifiers="const">
  265. <return type="bool">
  266. </return>
  267. <description>
  268. Returns [code]true[/code] if the selection is active.
  269. </description>
  270. </method>
  271. <method name="menu_option">
  272. <return type="void">
  273. </return>
  274. <argument index="0" name="option" type="int">
  275. </argument>
  276. <description>
  277. Triggers a right-click menu action by the specified index. See [enum MenuItems] for a list of available indexes.
  278. </description>
  279. </method>
  280. <method name="paste">
  281. <return type="void">
  282. </return>
  283. <description>
  284. Paste the current selection.
  285. </description>
  286. </method>
  287. <method name="redo">
  288. <return type="void">
  289. </return>
  290. <description>
  291. Perform redo operation.
  292. </description>
  293. </method>
  294. <method name="remove_breakpoints">
  295. <return type="void">
  296. </return>
  297. <description>
  298. Removes all the breakpoints. This will not fire the [signal breakpoint_toggled] signal.
  299. </description>
  300. </method>
  301. <method name="search" qualifiers="const">
  302. <return type="PoolIntArray">
  303. </return>
  304. <argument index="0" name="key" type="String">
  305. </argument>
  306. <argument index="1" name="flags" type="int">
  307. </argument>
  308. <argument index="2" name="from_line" type="int">
  309. </argument>
  310. <argument index="3" name="from_column" type="int">
  311. </argument>
  312. <description>
  313. Perform a search inside the text. Search flags can be specified in the [enum SearchFlags] enum.
  314. Returns an empty [code]PoolIntArray[/code] if no result was found. Otherwise, the result line and column can be accessed at indices specified in the [enum SearchResult] enum, e.g:
  315. [codeblock]
  316. var result = search(key, flags, line, column)
  317. if result.size() &gt; 0:
  318. # Result found.
  319. var res_line = result[TextEdit.SEARCH_RESULT_LINE]
  320. var res_column = result[TextEdit.SEARCH_RESULT_COLUMN]
  321. [/codeblock]
  322. </description>
  323. </method>
  324. <method name="select">
  325. <return type="void">
  326. </return>
  327. <argument index="0" name="from_line" type="int">
  328. </argument>
  329. <argument index="1" name="from_column" type="int">
  330. </argument>
  331. <argument index="2" name="to_line" type="int">
  332. </argument>
  333. <argument index="3" name="to_column" type="int">
  334. </argument>
  335. <description>
  336. Perform selection, from line/column to line/column.
  337. </description>
  338. </method>
  339. <method name="select_all">
  340. <return type="void">
  341. </return>
  342. <description>
  343. Select all the text.
  344. </description>
  345. </method>
  346. <method name="set_line">
  347. <return type="void">
  348. </return>
  349. <argument index="0" name="line" type="int">
  350. </argument>
  351. <argument index="1" name="new_text" type="String">
  352. </argument>
  353. <description>
  354. Sets the text for a specific line.
  355. </description>
  356. </method>
  357. <method name="set_line_as_hidden">
  358. <return type="void">
  359. </return>
  360. <argument index="0" name="line" type="int">
  361. </argument>
  362. <argument index="1" name="enable" type="bool">
  363. </argument>
  364. <description>
  365. If [code]true[/code], hides the line of the specified index.
  366. </description>
  367. </method>
  368. <method name="toggle_fold_line">
  369. <return type="void">
  370. </return>
  371. <argument index="0" name="line" type="int">
  372. </argument>
  373. <description>
  374. Toggle the folding of the code block at the given line.
  375. </description>
  376. </method>
  377. <method name="undo">
  378. <return type="void">
  379. </return>
  380. <description>
  381. Perform undo operation.
  382. </description>
  383. </method>
  384. <method name="unfold_line">
  385. <return type="void">
  386. </return>
  387. <argument index="0" name="line" type="int">
  388. </argument>
  389. <description>
  390. Unfolds the given line, if folded.
  391. </description>
  392. </method>
  393. <method name="unhide_all_lines">
  394. <return type="void">
  395. </return>
  396. <description>
  397. Unhide all lines that were previously set to hidden by [method set_line_as_hidden].
  398. </description>
  399. </method>
  400. </methods>
  401. <members>
  402. <member name="breakpoint_gutter" type="bool" setter="set_breakpoint_gutter_enabled" getter="is_breakpoint_gutter_enabled" default="false">
  403. If [code]true[/code], the breakpoint gutter is visible.
  404. </member>
  405. <member name="caret_blink" type="bool" setter="cursor_set_blink_enabled" getter="cursor_get_blink_enabled" default="false">
  406. If [code]true[/code], the caret (visual cursor) blinks.
  407. </member>
  408. <member name="caret_blink_speed" type="float" setter="cursor_set_blink_speed" getter="cursor_get_blink_speed" default="0.65">
  409. Duration (in seconds) of a caret's blinking cycle.
  410. </member>
  411. <member name="caret_block_mode" type="bool" setter="cursor_set_block_mode" getter="cursor_is_block_mode" default="false">
  412. If [code]true[/code], the caret displays as a rectangle.
  413. If [code]false[/code], the caret displays as a bar.
  414. </member>
  415. <member name="caret_moving_by_right_click" type="bool" setter="set_right_click_moves_caret" getter="is_right_click_moving_caret" default="true">
  416. If [code]true[/code], a right-click moves the cursor at the mouse position before displaying the context menu.
  417. If [code]false[/code], the context menu disregards mouse location.
  418. </member>
  419. <member name="context_menu_enabled" type="bool" setter="set_context_menu_enabled" getter="is_context_menu_enabled" default="true">
  420. If [code]true[/code], a right-click displays the context menu.
  421. </member>
  422. <member name="draw_spaces" type="bool" setter="set_draw_spaces" getter="is_drawing_spaces" default="false">
  423. If [code]true[/code], the "space" character will have a visible representation.
  424. </member>
  425. <member name="draw_tabs" type="bool" setter="set_draw_tabs" getter="is_drawing_tabs" default="false">
  426. If [code]true[/code], the "tab" character will have a visible representation.
  427. </member>
  428. <member name="focus_mode" type="int" setter="set_focus_mode" getter="get_focus_mode" override="true" enum="Control.FocusMode" default="2" />
  429. <member name="fold_gutter" type="bool" setter="set_draw_fold_gutter" getter="is_drawing_fold_gutter" default="false">
  430. If [code]true[/code], the fold gutter is visible. This enables folding groups of indented lines.
  431. </member>
  432. <member name="hiding_enabled" type="bool" setter="set_hiding_enabled" getter="is_hiding_enabled" default="false">
  433. If [code]true[/code], all lines that have been set to hidden by [method set_line_as_hidden], will not be visible.
  434. </member>
  435. <member name="highlight_all_occurrences" type="bool" setter="set_highlight_all_occurrences" getter="is_highlight_all_occurrences_enabled" default="false">
  436. If [code]true[/code], all occurrences of the selected text will be highlighted.
  437. </member>
  438. <member name="highlight_current_line" type="bool" setter="set_highlight_current_line" getter="is_highlight_current_line_enabled" default="false">
  439. If [code]true[/code], the line containing the cursor is highlighted.
  440. </member>
  441. <member name="minimap_draw" type="bool" setter="draw_minimap" getter="is_drawing_minimap" default="false">
  442. </member>
  443. <member name="minimap_width" type="int" setter="set_minimap_width" getter="get_minimap_width" default="80">
  444. </member>
  445. <member name="mouse_default_cursor_shape" type="int" setter="set_default_cursor_shape" getter="get_default_cursor_shape" override="true" enum="Control.CursorShape" default="1" />
  446. <member name="override_selected_font_color" type="bool" setter="set_override_selected_font_color" getter="is_overriding_selected_font_color" default="false">
  447. If [code]true[/code], custom [code]font_color_selected[/code] will be used for selected text.
  448. </member>
  449. <member name="readonly" type="bool" setter="set_readonly" getter="is_readonly" default="false">
  450. If [code]true[/code], read-only mode is enabled. Existing text cannot be modified and new text cannot be added.
  451. </member>
  452. <member name="scroll_horizontal" type="int" setter="set_h_scroll" getter="get_h_scroll" default="0">
  453. The current horizontal scroll value.
  454. </member>
  455. <member name="scroll_vertical" type="float" setter="set_v_scroll" getter="get_v_scroll" default="0.0">
  456. The current vertical scroll value.
  457. </member>
  458. <member name="selecting_enabled" type="bool" setter="set_selecting_enabled" getter="is_selecting_enabled" default="true">
  459. </member>
  460. <member name="shortcut_keys_enabled" type="bool" setter="set_shortcut_keys_enabled" getter="is_shortcut_keys_enabled" default="true">
  461. </member>
  462. <member name="show_line_numbers" type="bool" setter="set_show_line_numbers" getter="is_show_line_numbers_enabled" default="false">
  463. If [code]true[/code], line numbers are displayed to the left of the text.
  464. </member>
  465. <member name="smooth_scrolling" type="bool" setter="set_smooth_scroll_enable" getter="is_smooth_scroll_enabled" default="false">
  466. If [code]true[/code], sets the [code]step[/code] of the scrollbars to [code]0.25[/code] which results in smoother scrolling.
  467. </member>
  468. <member name="syntax_highlighting" type="bool" setter="set_syntax_coloring" getter="is_syntax_coloring_enabled" default="false">
  469. If [code]true[/code], any custom color properties that have been set for this [TextEdit] will be visible.
  470. </member>
  471. <member name="text" type="String" setter="set_text" getter="get_text" default="&quot;&quot;">
  472. String value of the [TextEdit].
  473. </member>
  474. <member name="v_scroll_speed" type="float" setter="set_v_scroll_speed" getter="get_v_scroll_speed" default="80.0">
  475. Vertical scroll sensitivity.
  476. </member>
  477. <member name="wrap_enabled" type="bool" setter="set_wrap_enabled" getter="is_wrap_enabled" default="false">
  478. If [code]true[/code], enables text wrapping when it goes beyond the edge of what is visible.
  479. </member>
  480. </members>
  481. <signals>
  482. <signal name="breakpoint_toggled">
  483. <argument index="0" name="row" type="int">
  484. </argument>
  485. <description>
  486. Emitted when a breakpoint is placed via the breakpoint gutter.
  487. </description>
  488. </signal>
  489. <signal name="cursor_changed">
  490. <description>
  491. Emitted when the cursor changes.
  492. </description>
  493. </signal>
  494. <signal name="info_clicked">
  495. <argument index="0" name="row" type="int">
  496. </argument>
  497. <argument index="1" name="info" type="String">
  498. </argument>
  499. <description>
  500. Emitted when the info icon is clicked.
  501. </description>
  502. </signal>
  503. <signal name="request_completion">
  504. <description>
  505. </description>
  506. </signal>
  507. <signal name="symbol_lookup">
  508. <argument index="0" name="symbol" type="String">
  509. </argument>
  510. <argument index="1" name="row" type="int">
  511. </argument>
  512. <argument index="2" name="column" type="int">
  513. </argument>
  514. <description>
  515. </description>
  516. </signal>
  517. <signal name="text_changed">
  518. <description>
  519. Emitted when the text changes.
  520. </description>
  521. </signal>
  522. </signals>
  523. <constants>
  524. <constant name="SEARCH_MATCH_CASE" value="1" enum="SearchFlags">
  525. Match case when searching.
  526. </constant>
  527. <constant name="SEARCH_WHOLE_WORDS" value="2" enum="SearchFlags">
  528. Match whole words when searching.
  529. </constant>
  530. <constant name="SEARCH_BACKWARDS" value="4" enum="SearchFlags">
  531. Search from end to beginning.
  532. </constant>
  533. <constant name="SEARCH_RESULT_COLUMN" value="0" enum="SearchResult">
  534. Used to access the result column from [method search].
  535. </constant>
  536. <constant name="SEARCH_RESULT_LINE" value="1" enum="SearchResult">
  537. Used to access the result line from [method search].
  538. </constant>
  539. <constant name="MENU_CUT" value="0" enum="MenuItems">
  540. Cuts (copies and clears) the selected text.
  541. </constant>
  542. <constant name="MENU_COPY" value="1" enum="MenuItems">
  543. Copies the selected text.
  544. </constant>
  545. <constant name="MENU_PASTE" value="2" enum="MenuItems">
  546. Pastes the clipboard text over the selected text (or at the cursor's position).
  547. </constant>
  548. <constant name="MENU_CLEAR" value="3" enum="MenuItems">
  549. Erases the whole [TextEdit] text.
  550. </constant>
  551. <constant name="MENU_SELECT_ALL" value="4" enum="MenuItems">
  552. Selects the whole [TextEdit] text.
  553. </constant>
  554. <constant name="MENU_UNDO" value="5" enum="MenuItems">
  555. Undoes the previous action.
  556. </constant>
  557. <constant name="MENU_REDO" value="6" enum="MenuItems">
  558. Redoes the previous action.
  559. </constant>
  560. <constant name="MENU_MAX" value="7" enum="MenuItems">
  561. Represents the size of the [enum MenuItems] enum.
  562. </constant>
  563. </constants>
  564. <theme_items>
  565. <theme_item name="background_color" type="Color" default="Color( 0, 0, 0, 0 )">
  566. Sets the background [Color] of this [TextEdit]. [member syntax_highlighting] has to be enabled.
  567. </theme_item>
  568. <theme_item name="bookmark_color" type="Color" default="Color( 0.08, 0.49, 0.98, 1 )">
  569. Sets the [Color] of the bookmark marker. [member syntax_highlighting] has to be enabled.
  570. </theme_item>
  571. <theme_item name="brace_mismatch_color" type="Color" default="Color( 1, 0.2, 0.2, 1 )">
  572. </theme_item>
  573. <theme_item name="breakpoint_color" type="Color" default="Color( 0.8, 0.8, 0.4, 0.2 )">
  574. Sets the [Color] of the breakpoints. [member breakpoint_gutter] has to be enabled.
  575. </theme_item>
  576. <theme_item name="caret_background_color" type="Color" default="Color( 0, 0, 0, 1 )">
  577. </theme_item>
  578. <theme_item name="caret_color" type="Color" default="Color( 0.88, 0.88, 0.88, 1 )">
  579. </theme_item>
  580. <theme_item name="code_folding_color" type="Color" default="Color( 0.8, 0.8, 0.8, 0.8 )">
  581. </theme_item>
  582. <theme_item name="completion" type="StyleBox">
  583. </theme_item>
  584. <theme_item name="completion_background_color" type="Color" default="Color( 0.17, 0.16, 0.2, 1 )">
  585. </theme_item>
  586. <theme_item name="completion_existing_color" type="Color" default="Color( 0.87, 0.87, 0.87, 0.13 )">
  587. </theme_item>
  588. <theme_item name="completion_font_color" type="Color" default="Color( 0.67, 0.67, 0.67, 1 )">
  589. </theme_item>
  590. <theme_item name="completion_lines" type="int" default="7">
  591. </theme_item>
  592. <theme_item name="completion_max_width" type="int" default="50">
  593. </theme_item>
  594. <theme_item name="completion_scroll_color" type="Color" default="Color( 1, 1, 1, 1 )">
  595. </theme_item>
  596. <theme_item name="completion_scroll_width" type="int" default="3">
  597. </theme_item>
  598. <theme_item name="completion_selected_color" type="Color" default="Color( 0.26, 0.26, 0.27, 1 )">
  599. </theme_item>
  600. <theme_item name="current_line_color" type="Color" default="Color( 0.25, 0.25, 0.26, 0.8 )">
  601. Sets the [Color] of the breakpoints. [member breakpoint_gutter] has to be enabled.
  602. </theme_item>
  603. <theme_item name="executing_line_color" type="Color" default="Color( 0.2, 0.8, 0.2, 0.4 )">
  604. </theme_item>
  605. <theme_item name="focus" type="StyleBox">
  606. </theme_item>
  607. <theme_item name="fold" type="Texture">
  608. </theme_item>
  609. <theme_item name="folded" type="Texture">
  610. </theme_item>
  611. <theme_item name="font" type="Font">
  612. Sets the default [Font].
  613. </theme_item>
  614. <theme_item name="font_color" type="Color" default="Color( 0.88, 0.88, 0.88, 1 )">
  615. Sets the font [Color].
  616. </theme_item>
  617. <theme_item name="font_color_readonly" type="Color" default="Color( 0.88, 0.88, 0.88, 0.5 )">
  618. </theme_item>
  619. <theme_item name="font_color_selected" type="Color" default="Color( 0, 0, 0, 1 )">
  620. Sets the [Color] of the selected text. [member override_selected_font_color] has to be enabled.
  621. </theme_item>
  622. <theme_item name="function_color" type="Color" default="Color( 0.4, 0.64, 0.81, 1 )">
  623. </theme_item>
  624. <theme_item name="line_number_color" type="Color" default="Color( 0.67, 0.67, 0.67, 0.4 )">
  625. Sets the [Color] of the line numbers. [member show_line_numbers] has to be enabled.
  626. </theme_item>
  627. <theme_item name="line_spacing" type="int" default="4">
  628. Sets the spacing between the lines.
  629. </theme_item>
  630. <theme_item name="mark_color" type="Color" default="Color( 1, 0.4, 0.4, 0.4 )">
  631. Sets the [Color] of marked text.
  632. </theme_item>
  633. <theme_item name="member_variable_color" type="Color" default="Color( 0.9, 0.31, 0.35, 1 )">
  634. </theme_item>
  635. <theme_item name="normal" type="StyleBox">
  636. Sets the [StyleBox] of this [TextEdit].
  637. </theme_item>
  638. <theme_item name="number_color" type="Color" default="Color( 0.92, 0.58, 0.2, 1 )">
  639. </theme_item>
  640. <theme_item name="read_only" type="StyleBox">
  641. Sets the [StyleBox] of this [TextEdit] when [member readonly] is enabled.
  642. </theme_item>
  643. <theme_item name="safe_line_number_color" type="Color" default="Color( 0.67, 0.78, 0.67, 0.6 )">
  644. </theme_item>
  645. <theme_item name="selection_color" type="Color" default="Color( 0.49, 0.49, 0.49, 1 )">
  646. Sets the highlight [Color] of text selections.
  647. </theme_item>
  648. <theme_item name="space" type="Texture">
  649. </theme_item>
  650. <theme_item name="symbol_color" type="Color" default="Color( 0.94, 0.94, 0.94, 1 )">
  651. </theme_item>
  652. <theme_item name="tab" type="Texture">
  653. Sets a custom [Texture] for tab text characters.
  654. </theme_item>
  655. <theme_item name="word_highlighted_color" type="Color" default="Color( 0.8, 0.9, 0.9, 0.15 )">
  656. Sets the highlight [Color] of multiple occurrences. [member highlight_all_occurrences] has to be enabled.
  657. </theme_item>
  658. </theme_items>
  659. </class>