Lines Matching refs:property
24 text property. And when inserting/deleting text inside the text property, it
35 example, add a text property on a function name, so that a search can be
38 A text property is attached at a specific line and column, and has a specified
39 length. The property can span multiple lines.
41 A text property has these fields:
43 "type" the name of a property type
48 A text property normally has the name of a property type, which defines
49 how to highlight the text. The property type can have these entries:
51 "combine" when omitted or TRUE the text property highlighting is
53 text property highlighting replaces the syntax
58 included in the text property
60 included in the text property
82 ^^^^^^^^ property with start_incl and end_incl set
85 ^^^^^^ property with start_incl and end_incl not set
99 Manipulating text property types:
101 prop_type_add({name}, {props}) define a new property type
102 prop_type_change({name}, {props}) change an existing property type
103 prop_type_delete({name} [, {props}]) delete a property type
104 prop_type_get({name} [, {props}]) get property type values
105 prop_type_list([{props}]) get list of property types
110 prop_add({lnum}, {col}, {props}) add a text property
112 add a text property at multiple
116 prop_find({props} [, {direction}]) search for a text property
119 remove a text property
123 Attach a text property at position {lnum}, {col}. {col} is
130 for a property that does not continue in
136 to {lnum}, this is a zero-width text property
137 bufnr buffer to add the property to; when omitted
139 id user defined ID for the property; must be a
141 type name of the text property type
145 are given. Either use "length" or "end_col" for a property
147 property that spans more than one line.
148 When neither "length" nor "end_col" are given the property
152 The property can end exactly at the last character of the
154 to the line, the text property size will increase, also when
155 the property type does not have "end_incl" set.
157 "type" will first be looked up in the buffer the property is
158 added to. When not found, the global property types are used.
166 Similar to prop_add(), but attaches a text property at
170 bufnr buffer to add the property to; when omitted
172 id user defined ID for the property; must be a
174 type name of the text property type
180 of the text where the property will be attached and the last
207 Search for a text property as specified with {props}:
208 id property with this ID
209 type property with this type name
223 A property matches when either "id" or "type" matches.
239 Each property is a Dict with these entries:
243 id property ID
244 type name of the property type, omitted if
248 start when TRUE property starts in this line
249 end when TRUE property ends in this line
251 When "start" is zero the property started in a previous line,
253 When "end" is zero the property continues in the next line.
261 Remove a matching text property from line {lnum}. When
275 A property matches when either "id" or "type" matches.
286 Add a text property type {name}. If a property type with this
289 bufnr define the property only for this buffer; this
291 clears the property types when the buffer is
302 be included in the text property
304 included in the text property
310 Change properties of an existing text property type. If a
311 property with this name does not exist an error is given.
318 Remove the text property type {name}. When text properties
323 a property type from this buffer instead of from the global
324 property types.
326 When text property type {name} is not found there is no error.
332 Returns the properties of property type {name}. This is a
335 When the property type {name} does not exist, an empty
339 this buffer instead of the global property types.
345 Returns a list with all property type names.
348 this buffer instead of the global property types.
358 When text is deleted and a text property no longer includes any text, it is
359 deleted. However, a text property that was defined as zero-width will remain,
377 Text property columns are not updated or copied: ~