Re: Markdown and HTML auto complete

2013-11-21 Thread Rick Yentzer
Oliver, thanks for the handy applescript.

BBEdit mentioned on twitter that I could change the clippings to html and 
that would give some auto complete functionality when writing in markdown.

Thanks,
Rick

On Wednesday, November 20, 2013 9:37:09 AM UTC-5, Rick Yentzer wrote:
>
> Lou 
> Vereaurecently
>  asked 
> on 
> twitter,
>  
> "Is there any Markdown editor for OSX that handles mixed Markdown & HTML 
> well (with autocompletion etc for both)? I don’t mind paying for it."
>
> I fired up BBEdit thinking surely it does this. Turns out it doesn't. Or 
> at least not how I thought it would.
>
> I would like the ability to autocomplete html within an .md file.
>
> Currently, when I type a tag element, I'm able to auto close it. I can 
> select an element from the menu or shortcut key, such as an image or a 
> link, but I cannot select the Edit Markup menu item.
>
> Also, BBEdit doesn't handle syntax coloring of html elements in markdown 
> beyond a simple element tag.
>
> I'm currently using version 3325.
>
> Thanks,
> Rick
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: Does BBE support Syntax and Formatting for PHP code

2013-11-21 Thread StBb
As long as just php syntax checking is needed / wanted for me the 
ultimative solution still is

http://daringfireball.net/2003/12/php_syntax_checking_in_bbedit

Despite being almost 10 years old by now it simply works, is reliable and 
helpful. I use it every day. Bind it to an easy shortcut (F7 is mine, just 
honoring SciTE), make it a habit to hit F7 before cmd-s, and on you go.

There is a daughter project for JavaScript, if one is doing such heavily:

http://www.schmoyer.com/code/js_lint/

It's not as picky as a true jslint (http://www.jslint.com) but for common 
real world cases that may be rather welcome. I have it on ctrl-F7 and use 
it often. (and it should anyway be easy to adapt to the "true jslint" - 
never had a need to undertake that little effort so far, anyway)

regards,
--stefan

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: Reset untitled text ## numbering

2013-11-21 Thread StBb
In BBEdit 10.5.5 the incrementing keeps running even after quit and 
restart, at least for me. Not a big deal, anyway FYR here is what Patrick 
Woolsey answered me on this:

---
This behavior is the side-effect of a change (fix) we made in BBEdit 
10.5.5, and we do already have it marked for correction in a future update.

I apologize for the inconvenience, and for the meantime, if you really need 
to reset this count :), you can do so as follows:

 * Within BBEdit, close all open editing windows and then quit

 * Open BBEdit's preferences folder, which you can find in this location:

   /Users/USERNAME/Library/BBEdit/

 * Delete the file named "Sleep State-[bunch of alpha-numerics].appstate"

 * Launch BBEdit

and the count should now be reset.

(The reason you'll want to close all windows before deleting the 
'.appstate' file is because throwing it out will make BBEdit forget them 
anyway, but by doing so beforehand, you can control their state.)
---

--stefan

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.


Re: Markdown and HTML auto complete

2013-11-21 Thread Oliver Taylor
On Nov 20, 2013, at 6:37 AM, Rick Yentzer  wrote:

> I would like the ability to autocomplete html within an .md file.

What BBEdit auto-completes is largely a function of the current language 
setting. By default, the Markdown language does not have html tags in its 
auto-complete library (I’m paraphrasing here).

You could switch the language of the current document on the fly (doesn’t 
matter what kind of document it actually is). Below, I’ve pasted an applescript 
to toggle the front document’s language between HTML and Markdown. Assign that 
a hotkey and then just switch depending on what kind of auto-complete you want 
on a moment-by-moment basis. BBEdit is even smart enough to switch clipping 
sets when you switch languages.


tell application "BBEdit"
set docLang to source language of text document 1
if (docLang is "HTML") then
set source language of text document 1 to "Markdown"
else
set source language of text document 1 to "HTML"
end if
end tell


> Currently, when I type a tag element, I'm able to auto close it. I can select 
> an element from the menu or shortcut key, such as an image or a link, but I 
> cannot select the Edit Markup menu item.

The edit markup menu item only works in Markdown documents when you’re inside 
an html tag.

> Also, BBEdit doesn't handle syntax coloring of html elements in markdown 
> beyond a simple element tag.

BBEdit was never designed for this kind of deep integration of languages. The 
first editor I’m aware of that did it was Textmate. These days Textmate 2 or 
Sublime Text might be more what you’re looking for - though I’m not familiar 
enough with them to promise that.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.