Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Syntax highlighting #240

Open
mieliespoor opened this issue Oct 3, 2016 · 4 comments
Open

[Question] Syntax highlighting #240

mieliespoor opened this issue Oct 3, 2016 · 4 comments

Comments

@mieliespoor
Copy link

I have been playing with miniblog for the last little while, but one thing I have found to be lacking, it to include code blocks (C#, script, xml, etc.) in blog posts and then make use of a syntax highlighter.

I have had a quick look at http://alexgorbatchev.com/SyntaxHighlighter/, but what have you guys done to get this working. It seems like an laborious task to add code blocks using the WYSIWYG editor. Does something like open live write make this easier?

From what I gather, these code blocks should be added inside a set of pre tags?

@Verakso
Copy link

Verakso commented Jun 13, 2017

I wonder how far you got with this?

At the moment I am struggling just to get the <pre> tag working and if there is an easier way in open live, then I haven't found it.

The issue I am facing with the <pre> tag, is that MiniBlog saves all the content as one long string, and that means that the line breaks that you normally can have inside the <pre> tags are removed so the result is unreadable.

@mieliespoor
Copy link
Author

@Verakso I haven't actually had the time to look further into this and try and get it working. Last time I worked on this, I had similar issues as to what you are currently facing.

I understand the idea is to keep this blog lightweight, but this should be a basic feature and I don't think we should spend time coding away to get something like this working. The community might differ with my opinion though. :)

@Verakso
Copy link

Verakso commented Jul 5, 2017

Well @madskristensen did name this project MiniBlog, as opposite to BlogEngine.NET there is a more full blown blog engine. To complain a lack of features in MiniBlog is like complaining about the Little Mermaid being so little - I mean she is called the Little Mermaid (sorry for than analogy, but both @madskristensen are from Denmark ;) )

So, yes - there might be a ton of features lacking in this version, but that also seems to be where the "community" kicks in. Currently there is 364 forks or this project, the downside is, that I also find it very hard to see, what and how others might have solved some of these issues.

But I have found some fine and nice alternatives to this, both having their foundation from this project.
RazorPub by @RazorAnt
cloudscribe.SimpleContent build on the cloudscribe foundation by @joeaudette

The last one seems really interesting, but still - you get what you pay for ;)

In the meantime I did solve my problem with syntax highlighting in MiniBlog simply by using Gist

@joeaudette
Copy link

for anyone interested we do have built in support for syntax highlighting in CKEditor used in SimpleContent
https://www.cloudscribe.com/docs/customizing-the-editor
I'm using it extensively in the documentation for cloudscribe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants