amir-s / pressjs

1 stars 1 forks source link

Code block #2

Closed hamed-zamani closed 10 years ago

hamed-zamani commented 10 years ago

It is obvious that geek guys like to use this platform more than others, so supporting a good Code block is important. One important issue in Coding Block is that people (blog viewers) wants to select code blocks and use copy/paste technique. But #PressJS do not support this important feature yet!

amir-s commented 10 years ago

PressJS uses MarkDown. MarkDown itself supports code blocks and so PressJS.

PressJS even supports syntax highlighting for code blocks. Four spaces or a single tab specifies you are writing a code blocks. You can also use ``` syntax:

```javascript
    var call = Function.prototype.call.call.bind(Function.prototype.call)
hamed-zamani commented 10 years ago

I knew that! but when please open your blog and try to copy a multiple line code from your blog! If you can do something that fix the problem of copying(!) it would be awesome. :)

amir-s commented 10 years ago

@boomz I've tested the copy functionality and it just worked fine! Would you please tell me some details?

hamed-zamani commented 10 years ago

@amir-s I update my Chrome and now the problem is solved ;) Please close the issue! :)