+
     Bi                         R t ^ RIHt ^ RIHt R t ! R R4      t]P                  4        ]R8X  d   ^ RI	t	]	P                  ! R^R	R
7       R# R# )zExample extension, also used for testing.

See extend.txt for more details on creating an extension.
See config-extension.def for configuring an extension.
)idleConfwrapsc                4   a  \        S 4      RV 3R ll4       pV# )z9Apply a formatting function to all of the selected lines.c                    < V P                   P                  4       w  r#rE\        \        V4      ^,
          4       F  pWV,          pS! W4      WV&   K  	  V P                   P	                  W#WE4       R# )   break)	formatter
get_regionrangelen
set_region)	selfeventheadtailcharslinesposlineformat_lines	   &&      &/usr/lib/python3.14/idlelib/zzdummy.pyapplyformat_selection.<locals>.apply   s]    #'>>#<#<#> EUa(C:D$T0EJ ) 	!!$e;    )Nr   )r   r   s   f r   format_selectionr      s#     ;  Lr   c                   h   a  ] tR t^t o RtRR	R
.3.tR t]R 4       t]	R 4       t
]	R 4       tRtV tR# )ZzDummyz3Prepend or remove initial text from selected lines.formatc                V    Wn         VP                  V n        VP                  V n        R# )z+Initialize the settings for this extension.N)editwintextfregionr	   )r   r    s   &&r   __init__ZzDummy.__init__%   s    LL	 r   c                @    \         P                  ! RRR4      V n        R# )z!Load class variables from config.
extensionsr   zz-textN)r   	GetOptionztext)clss   &r   reloadZzDummy.reload+   s     &&|YI	r   c                "    V P                    V 2# )zInsert text at the beginning of each selected line.

This is bound to the <<z-in>> virtual event when the extensions
are loaded.
)r(   )r   r   s   &&r   
z_in_eventZzDummy.z_in_event0   s     **dV$$r   c                z    VP                  V P                  4      '       g   ^ M\        V P                  4      pWR # )zRemove specific text from the beginning of each selected line.

This is bound to the <<z-out>> virtual event when the extensions
are loaded.
N)
startswithr(   r   )r   r   zlengths   && r   z_out_eventZzDummy.z_out_event9   s/      ??4::66!C

OH~r   )r    r	   r!   N)zZ inz<<z-in>>)zZ outz	<<z-out>>)__name__
__module____qualname____firstlineno____doc__menudefsr#   classmethodr*   r   r-   r2   __static_attributes____classdictcell__)__classdict__s   @r   r   r      sg     = 
 "
 	H) J J % %  r   r   __main__Nzidlelib.idle_test.test_zzdummyF)	verbosityexit)r8   idlelib.configr   	functoolsr   r   r   r*   r4   unittestmain r   r   <module>rF      sQ    $ ' 'T   zMM2aeL r   