Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/20tab/twentytab-highlighter

A django app permits to highlight the searched words (self.query) in a long text and truncates it, counts number of chars == max_length
https://github.com/20tab/twentytab-highlighter

Last synced: 21 days ago
JSON representation

A django app permits to highlight the searched words (self.query) in a long text and truncates it, counts number of chars == max_length

Awesome Lists containing this project

README

        

twentytab-highlighter
=====================

A django app permits to highlight the searched words (self.query) in a long text and truncates it, counts number of chars == max_length

## Installation

Use the following command: pip install twentytab-highlighter

## Configuration

```py
INSTALLED_APPS = {
...,
'highlighter',
...
}

```

## Usage

In your html template

```html
{% load highlight_tags %}

{{a_very_long_text|highlight:"word"}}

```