Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

Code snippet plugin

<< < (8/12) > >>

dmoore:

--- Quote ---I don't seem to be able to figure out how to actually edit code snippets. When I right-click on a snippet node there are only two menu items, "Apply" and "Remove"
--- End quote ---

couldn't you just insert the snippet into the editor by double clicking, edit the text, then select and drag the text back into your snippet?

artoj:

--- Quote from: szczepan on September 21, 2006, 10:20:02 pm ---Does this plugin do variable substitutions?

--- End quote ---

No, it's in the TODO list.

szczepan:

--- Quote from: artoj on September 22, 2006, 09:36:45 am ---
--- Quote from: szczepan on September 21, 2006, 10:20:02 pm ---Does this plugin do variable substitutions?

--- End quote ---

No, it's in the TODO list.

--- End quote ---

OK. Perhaps you could reuse the built-in abbreviations code?

artoj:

--- Quote from: szczepan on September 22, 2006, 04:31:09 pm ---OK. Perhaps you could reuse the built-in abbreviations code?

--- End quote ---

Yeah, I was actually browsing the abbreviations code.

However I will implement the editing of the snippets first which probably requires writing the configuration dialog so it might take a while.

Pecan:

--- Quote from: artoj on September 22, 2006, 04:52:13 pm ---
--- Quote from: szczepan on September 22, 2006, 04:31:09 pm ---OK. Perhaps you could reuse the built-in abbreviations code?

--- End quote ---

Yeah, I was actually browsing the abbreviations code.

However I will implement the editing of the snippets first which probably requires writing the configuration dialog so it might take a while.

--- End quote ---

You might implement that properties box I sent you, but make the textCtrl a wxTE_MULTILINE editor. That'd take the pressure off implementing an editor for awhile.


--- Code: --- m_SnippetTextCtrl = new wxTextCtrl( this, ID_DEFAULT, wxT(""), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
bSizer1->Add( m_SnippetTextCtrl, 1, wxALL|wxEXPAND, 5 );

--- End code ---


Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version