> On Dec 20, 2015, at 12:49, Kerri Hicks <[email protected]> wrote: > > On Sat, Dec 19, 2015 at 6:38 PM, Jean-Christophe Helary > <[email protected] <mailto:[email protected]>> > wrote: > >> On Dec 20, 2015, at 02:08, Kerri Hicks <[email protected] >> <mailto:[email protected]>> wrote: >> >> On Sat, Dec 19, 2015 at 7:55 AM, Jean-Christophe Helary >> <[email protected] <mailto:[email protected]>> >> wrote: >> I was editing a tmx file and tried to "balance" tags, just to see if that >> would work and it failed. >> >> Did you change the file type in BBEdit to XML? Balance tags should work if >> your XML is well-formed. > > I did not change anything. The file is identified as being XML already. It's > got a proper declaration on the first line: > <?xml version="1.0" encoding="UTF-8"? > > Yes, but it's not saved with an .xml extension, so BBEdit doesn't know that > it's supposed to be an XML file -- it doesn't know what .tmx files are. You > can choose XML from the pick list at the bottom of the editor window, and > then, no matter what the extension, BBEdit will treat the document as XML.
Thank you for the video, in fact I had the XML selection already so I guess BBEdit was able to identify the file as XML even without the extension. And I guess I did not understand the purpose of the "balance tags" command since the "close current tag" did actually work on my file. > The .tmx file extension isn't mapped to XML by default in BBEdit, but you can > change that in Prefs so that all .tmx files open up as XML documents. > Preferences -> Languages -> Custom Extension Mappings. I don't know. It seems like BBEdit did recognize it without the mapping since I don't have any specific setting in the preferences. I checked .xlf (XLIFF) and BBEdit recognized it as XML too. Jean-Christophe -- This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit> --- 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 [email protected]. To post to this group, send email to [email protected].
