I’m making a test post with ecto. Ecto is desktop publishing solution for the Mac platform, which works with wordpress among others.
For starters, here is a picture:

And here is some source code:
def Select(Account_MNID):
return App.DB.Row(”’
SELECT
“Account_MNID”,
“Name”,
“CreateDate”,
“ChangeDate”,
“Address1”,
“Address2”,
“Address3”,
“City”,
“State”,
“Zip”,
“Country_MSID”,
“Phone”,
“Fax”,
“Email”,
“Note”,
“Perm_Active”
FROM
“ACRM”.”Account”
WHERE true
AND “Account_MNID” = $Account_MNID
”’,
Account_MNID = Account_MNID
)
It is important to me that code shows up correctly once posted. For clarity, I will take a screenshot of the code…

Lastly, I need to see what happens when I post a high quality photo from my desktop…
I did this one by dragging the photo from Finder onto this Ecto window.

As an edit, I clicked the insert image button, and used a preset to specify 700px wide, but as a thumbnail…. Let’s see.

Ok, good side… Pictures and text seem to flow pretty well. Bad side… Code formatting was lost. I should try wrapping it in the [ sourcecode ] wrapper… I’ll do that next…
# vim:encoding=utf-8:ts=2:sw=2:expandtab
import Extruct
import re
import uuid
import hashlib
from .. import App, ACRM
from . import Validate
from AppStruct.Util import *
from datetime import date
Insert_Validate = App.GetHook(‘CCRM.Account.Insert_Validate’)
Insert_Execute = App.GetHook(‘CCRM.Account.Insert_Execute’)
#============================================================================
def Select(Account_MNID):
return App.DB.Row(”’
SELECT
“Account_MNID”,
“Name”,
“CreateDate”,
“ChangeDate”,
“Address1”,
“Address2”,
“Address3”,
“City”,
“State”,
“Zip”,
“Country_MSID”,
“Phone”,
“Fax”,
“Email”,
“Note”,
“Perm_Active”
FROM
“ACRM”.”Account”
WHERE true
AND “Account_MNID” = $Account_MNID
”’,
Account_MNID = Account_MNID
)
For sourcecode, I guess I’m still stuck editing the HTML.
Look at the markup that was generated with a simple copy/paste from Github…

What is the best way to post source code examples?
Like this:
Like Loading...
Related