SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Is there a user guide for blog content formatting?


Is there a user guide for blog content formatting?

Author
Message
Don Halloran
Don Halloran
SSCertifiable
SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)

Group: General Forum Members
Points: 5219 Visits: 1950
The "powered by telligent" link at the bottom of the blog edit page goes to what appears to now be a parked domain. I had some old snippets that stopped worked a long time ago as well, but since I wasn't writing anything I didn't really care.

Now I actually have some content to contribute but I'm not sure how to get TSQL syntax highlighting in preformatted code blocks, and so on, back into the blog page.

Blog on sqlservercentral
Steve Jones
Steve Jones
SSC Guru
SSC Guru (603K reputation)SSC Guru (603K reputation)SSC Guru (603K reputation)SSC Guru (603K reputation)SSC Guru (603K reputation)SSC Guru (603K reputation)SSC Guru (603K reputation)SSC Guru (603K reputation)

Group: Administrators
Points: 603202 Visits: 21112
We don't have a guide, partially because we weren't sure what to do here.

We have our own CSS style guide, so depending on a site CSS probably causes most issues. If you use inline styling, then things should come across. One thing to think about is setting images sizes. Most have a link to the full image, but without a sizing, we don't re-render these are smaller than their native size.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
Steve Jones
Steve Jones
SSC Guru
SSC Guru (603K reputation)SSC Guru (603K reputation)SSC Guru (603K reputation)SSC Guru (603K reputation)SSC Guru (603K reputation)SSC Guru (603K reputation)SSC Guru (603K reputation)SSC Guru (603K reputation)

Group: Administrators
Points: 603202 Visits: 21112
FWIW, we use

pre class="prettyprint lang-sql"

as the CSS tag for articles. That should work for SQL Code. We have lang=cs, lang-xml, lang-r, lang-vb, as well.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
Don Halloran
Don Halloran
SSCertifiable
SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)

Group: General Forum Members
Points: 5219 Visits: 1950
Great, that's just the kind of info I was looking for - ie, what stylesheets were available by default. I did discover via experimentation that 'pre class="brush: sql;" - presumably from the SyntaxHighlighter plugin - provides reasonable colours, but the indenting is slightly off with that one, so I'd prefer an alternative.

Your suggestion doesn't appear to be available - a pre block with that class simply appears as regular preformatted text with no syntax highlighting in my preview. I'm not much of an HTML guy, but I expect I can only use whichever stylesheets/plugins are made available by SSC directly, right? Since obviously the head element isn't made available by the blog editor.

Blog on sqlservercentral
Steve Jones
Steve Jones
SSC Guru
SSC Guru (603K reputation)SSC Guru (603K reputation)SSC Guru (603K reputation)SSC Guru (603K reputation)SSC Guru (603K reputation)SSC Guru (603K reputation)SSC Guru (603K reputation)SSC Guru (603K reputation)

Group: Administrators
Points: 603202 Visits: 21112
The style is applied later. Don't worry about the preview.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
Don Halloran
Don Halloran
SSCertifiable
SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)

Group: General Forum Members
Points: 5219 Visits: 1950
Roger that, thanks Steve.

Blog on sqlservercentral
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search