// NewHighlightNodeArgs initializes HighlightNodeArgs with the required arguments.
192013
func NewHighlightNodeArgs(highlightConfig HighlightConfig) *HighlightNodeArgs {
	args := new(HighlightNodeArgs)
	args.HighlightConfig = highlightConfig
	return args
}
354927
func (s *TextArrayOptions) SetHighlightEnabled(v bool) *TextArrayOptions {
	s.HighlightEnabled = &v
	return s
}
1207517
func BgBrightWhite(arg interface{}) Value {
	if val, ok := arg.(Value); ok {
		return val.BgBrightWhite()
	}
	return value{value: arg, color: BrightBg | WhiteBg}
}
318542
func (list *List) PrintHighlight(element string) int {
	newIndent := len(list.indent) - 3
	indent := ""

	if newIndent > 1 {
		indent = strings.Repeat(" ", newIndent)
	}

	list.colors.Highlight.Set()
	bytes, _ := list.Print(indent + list.chooser + element)
	color.Unset()

	return bytes
}
526030
func newDelayOpts() *delayOpts {
	return &delayOpts{
		initial:    defaultInitial,
		max:        defaultMax,
		randomizer: defaultRandomizer,
		sleeper:    defaultSleeper,
	}
}
1301070
func NewGetPlatformFontsForNodeArgs(nodeID dom.NodeID) *GetPlatformFontsForNodeArgs {
	args := new(GetPlatformFontsForNodeArgs)
	args.NodeID = nodeID
	return args
}
1194098
func NewQuerySelectorArgs(nodeID NodeID, selector string) *QuerySelectorArgs {
	args := new(QuerySelectorArgs)
	args.NodeID = nodeID
	args.Selector = selector
	return args
}
1357921
func BrightWhite(arg interface{}) Value {
	if val, ok := arg.(Value); ok {
		return val.BrightWhite()
	}
	return value{value: arg, color: BrightFg | WhiteFg}
}
1056991
func NewMakeSnapshotArgs(layerID LayerID) *MakeSnapshotArgs {
	args := new(MakeSnapshotArgs)
	args.LayerID = layerID
	return args
}
647362
func NewSetNodeNameArgs(nodeID NodeID, name string) *SetNodeNameArgs {
	args := new(SetNodeNameArgs)
	args.NodeID = nodeID
	args.Name = name
	return args
}
179931
func NewGetRelayoutBoundaryArgs(nodeID NodeID) *GetRelayoutBoundaryArgs {
	args := new(GetRelayoutBoundaryArgs)
	args.NodeID = nodeID
	return args
}
116244
func (a *SetInspectModeArgs) SetHighlightConfig(highlightConfig HighlightConfig) *SetInspectModeArgs {
	a.HighlightConfig = &highlightConfig
	return a
}
1105544
func MarkdownCommonHighlighter(input []byte) []byte {
	renderer := highlightHTMLRenderer{blackfriday.HtmlRenderer(commonHTMLFlags, "", ""), 0}
	return blackfriday.MarkdownOptions(input, &renderer, blackfriday.Options{
		Extensions: commonExtensions})
}
537604
func NewNode(t *Type, id *ID) *Node {
	return &Node{
		t:  t,
		id: id,
	}
}
1214358
func (c *ChannelGraph) DeleteLightningNode(nodePub *btcec.PublicKey) error {
	// TODO(roasbeef): ensure dangling edges are removed...
	return c.db.Update(func(tx *bbolt.Tx) error {
		nodes := tx.Bucket(nodeBucket)
		if nodes == nil {
			return ErrGraphNodeNotFound
		}

		return c.deleteLightningNode(
			nodes, nodePub.SerializeCompressed(),
		)
	})
}
1117201
func (s *SearchSource) Highlighter() *Highlight {
	if s.highlight == nil {
		s.highlight = NewHighlight()
	}
	return s.highlight
}
451763
func newNodeValue(value interface{}) *node {
	n := newNode()
	n.value = value
	n.children = nil
	return n
}