Ask a question to get started
Enter to send•Shift+Enter new line
replace_placeholder_with_text( self, paste_id: int, content: str ) -> bool
paste_id
int
The paste id whose placeholder should be expanded.
content
str
The full text to insert where the placeholder was.
Replace a [Pasted text #id] placeholder with full text in place.
[Pasted text #id]
Used when the same content is pasted again: the compact placeholder is expanded back to the original text where it sits, preserving surrounding input.