目次 このページのソースコードを表示
公開日:
更新日:

ここでは, OutlineTextのダウンロードリンクを示します.

ダウンロード

以下のページからダウンロード可能です.

https://github.com/ContentsViewer/ContentsPlanet/blob/master/Module/OutlineText.php

NOTE

OutlineTextは, ContentsPlanet(コンテンツ管理システム) に導入され, 更新はContentsPlanetプロジェクト内で行われることになりました.

使い方

phpを実行できる環境(xamppなど)を用意し, ダウンロードしたフォルダの中身をそのままhtdocsに入れる.

sample.contentにいろいろ書いてみる.

ブラウザでindex.phpにアクセスし結果を見る

index.php

            <!DOCTYPE html>
            <html lang="ja">
        
            <head>
                <meta charset="UTF-8" />
                <link rel="stylesheet" href="OutlineTextStandardStyle.css" />
            </head>
        
        
            <body>
        
            <?php
                include "OutlineText.php";
        
                OutlineText\Parser::Init();
        
                $text = htmlspecialchars (file_get_contents("Sample.content"));
        
                echo "<pre>";
                echo $text;
                echo "</pre>";
        
                echo OutlineText\Parser::Parse($text);
            ?>
        
            </body>
            </html>

対応文字コード

対応文字コード
文字コード BOMなしUTF-8
改行コード LFのみ
「https://contentsviewer.work/Master/OutlineText/Download」から取得