bad-text

1.0.1 • Public • Published

PowerTrash5771 Bad Text Lang

Bad Text is a language that allows you to make websites, presentations, blog posts, and much more!. It is easily customizable, there will be themes that are constantly created.

Compile

With code, without plugins

var BadText = require('powertrash-bad-text-lang');
var BadText_File fs.readFileSync('example.btext').toString();
var BadText_HTML
BadText.ToHtml(BadText_File,[],(result) => {
  // result.from is the original code
  // result.compiled is the compiled HTML
  BadText_HTML = result.compiled;
})

With code, and plugins

var BadText = require('powertrash-bad-text-lang');
var BadText_File fs.readFileSync('example.btext').toString();
var BadText_HTML
BadText.ToHtml(BadText_File,[BadText.BadTextStudio],(result) => {
  // result.from is the original code
  // result.compiled is the compiled HTML
  BadText_HTML = result.compiled;
})

Compile without code (coming soon)

download BadTextCompiler or go to BadTextCompilerOnline

Language

Creating a hello world app

$h1(Hello World!)

Creating bold text

$bold(Test.)

Creating a paragraph

$p(Paragraph)

Creating a list

It was going to be added like this, but had alot of bugs, and is now in BadTextStudio plugin. I might consider adding this later if I can.

$h3(Features)
$ul($li(Powerful Nothing)$li(Pls Go))

Bold in heading (Only supports h1 right now)

$h1-bold(Hello World)

Language Imperfections

you can't put ")" in your code

Fix: ^1

BadTextStudio

Create Header (Requires Custom Theme)

$theme(badtext-green-blue);
$studio-header(This is a header.)

Create Lists (NEW!)

$theme(badtext-green-blue);
$ulist{
*text(This is text);
*link(https://www.google.com/,This is a link);
*button(https://www.google.com/,This is a button);
}($ulist)

Create Nav (Coming Soon)

$theme(badtext-green-blue);
$nav{
$nav:link(https://www.google.com/,Google);
$nav:link(https://www.youtube.com/,Youtube);
}($nav)

Changelog

  1. 1.0.1
    1. New update to BadTextStudio
    2. Added Lists
    3. Updated Documentation
  2. 1.0.0
    1. First Release

Readme

Keywords

Package Sidebar

Install

npm i bad-text

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

8.37 kB

Total Files

10

Last publish

Collaborators

  • powertrash5771