//
// XTHtmlTagT2Hilite.m
// XTads
//
// Created by Rune Berg on 12/08/15.
// Copyright (c) 2015 Rune Berg. All rights reserved.
//
#import "XTHtmlTagT2Hilite.h"
#import "XTBaseTextHandler.h"
#import "XTFormattingSpecificationForHtmlTag.h"
@implementation XTHtmlTagT2Hilite
+ (NSString *)name
{
return @"tads2hilite";
}
+ (BOOL)standalone
{
return NO;
}
- (void)format:(NSObject *)formatter
textHandler:(XTBaseTextHandler *)textHandler
{
// This is not a container tag, so modify current font spec
formatter.formattingSpecForHtmlTag.formattingSpec.t2Hilite = (! self.closing);
}
@end