danyaPostfactum / modx-ace

ACE editor integration into MODx
24 stars 23 forks source link

Expandable codesnippets integration #20

Open christianhanvey opened 11 years ago

christianhanvey commented 11 years ago

Would love to see some code-snippets for common MODX snippet calls integrated into modx-ace! eg type 'getR' + tab => [[getResources? &props=sample]]

It looks like expandable snippets are technically possible now in ACE: https://github.com/ajaxorg/ace/pull/1192

I created some codesnippets to add to Sublime Text 2, to help which works great - but even better would be to see some examples featured in the ACE editor :) The snippets I created for ST2 are here: https://github.com/christianhanvey/modx-sublimetext-2/tree/snippets#snippets---texthtml-texthtml5-textplain

Ideally, a default setting or file with basic examples of codesnippets would be installed with ACE, from which a customised setting/file could be created.

danyaPostfactum commented 11 years ago

Added basic snippet support: https://github.com/danyaPostfactum/modx-ace/commit/d96b6ab81af7cf9b034a1a965cb93b3418390a39