<p><a href="https://github.com/elextr" class="user-mention">@elextr</a> It does say that it uses Scintilla as the core text editing component, when I first browsed the code it looks like mainly lua, looking closer I see some calls that create a Scintilla document. See textadept.c line no. 1355.</p>
<pre><code>/**
 * Creates a new Scintilla document and adds it to the Lua state.
 * Generates 'buffer_before_switch' and 'buffer_new' events.
 * @param doc Almost always zero, except for the first Scintilla view created,
 *   in which its doc pointer would be given here since it already has a
 *   pre-created buffer.
 * @see lL_adddoc
 */
static void new_buffer(sptr_t doc) {
  if (!doc) {
    doc = SS(focused_view, SCI_CREATEDOCUMENT, 0, 0); // create the new document
    lL_event(lua, "buffer_before_switch", -1);
    lL_adddoc(lua, doc);
    lL_gotodoc(lua, focused_view, -1, FALSE);
  } else lL_adddoc(lua, doc), SS(focused_view, SCI_ADDREFDOCUMENT, 0, doc);
#if GTK
...
</code></pre>
<p><a href="https://foicica.com/textadept/TECHNOLOGY.html" rel="nofollow">https://foicica.com/textadept/TECHNOLOGY.html</a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/1141#issuecomment-345281595">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJzlqVD5mi0ySVQm6L7Wfh9BN2hw6ks5s3avjgaJpZM4JNUhS">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJwSSIsphxh6E9rCr9FNVTS3DrXgUks5s3avjgaJpZM4JNUhS.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/1141#issuecomment-345281595"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@AdamDanischewski in #1141: @elextr It does say that it uses Scintilla as the core text editing component, when I first browsed the code it looks like mainly lua, looking closer I see some calls that create a Scintilla document. See textadept.c line no. 1355. \r\n\r\n```\r\n/**\r\n * Creates a new Scintilla document and adds it to the Lua state.\r\n * Generates 'buffer_before_switch' and 'buffer_new' events.\r\n * @param doc Almost always zero, except for the first Scintilla view created,\r\n *   in which its doc pointer would be given here since it already has a\r\n *   pre-created buffer.\r\n * @see lL_adddoc\r\n */\r\nstatic void new_buffer(sptr_t doc) {\r\n  if (!doc) {\r\n    doc = SS(focused_view, SCI_CREATEDOCUMENT, 0, 0); // create the new document\r\n    lL_event(lua, \"buffer_before_switch\", -1);\r\n    lL_adddoc(lua, doc);\r\n    lL_gotodoc(lua, focused_view, -1, FALSE);\r\n  } else lL_adddoc(lua, doc), SS(focused_view, SCI_ADDREFDOCUMENT, 0, doc);\r\n#if GTK\r\n...\r\n```\r\nhttps://foicica.com/textadept/TECHNOLOGY.html"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1141#issuecomment-345281595"}}}</script>