
內容簡介
Jimmy Codeviewer 是一個可載入文字、SVG (Scalable Vector Graphics) 及其他腳本到 WordPress 頁面的 shortcode 庫。透過使用此外掛,你可以減少你的程式碼數量。例如,如果你想在頁面上放置一個比例化的程式碼範例,你只需要輸入一個 shortcode,接下來你可以得到有行號和彩色字詞的範例。此外,你可以使用「magazine」主題模板,使頁面的佈局與紙質雜誌相似。
簡介
在我最初的想法裡,我打算製作一個能在我的網站中介紹文章的程式碼查看器。這沒有問題,並把這個外掛命名為「Jimmy Codeviewer」。但在製作「Jimmy Codeviewer」的過程中,我想到這可以成為一個多用途的文字查看器。現今,許多新聞網站對於其內容都有非常簡單的佈局。你可以每天在報攤看雜誌或報紙,這些都色彩繽紛且設計豐富。我只是想在網路上也有這樣的設計豐富的雜誌和報紙。色彩繽紛且設計豐富實際上引起我們的注意和喜愛。現在瀏覽器的渲染能力正在增強,這個挑戰 - 在網路上制作雜誌和報紙 - 不是一個夢想,而是一個現實。此外,我試圖將 WordPress 改成 SVG-Free,SVG (Scalable Vector Graphics) 是向量圖形容器之一。它就像 HTML 和 JavaScript 一樣。這正是 WordPress 社群禁止透過媒體上傳程式來儲存 SVG 檔案的原因。如果 SVG 是程式碼,它們應該被存儲為頁面上的腳本。但「文章」和「頁面」有它們自己的公共頁面用途。因此,我決定製作「jArticles」,並將文字、SVG 和腳本儲存在「jArticles」中。為了在「文章」中載入「jArticles」,我製作了幾個 WordPress shortcode。
Jimmy Codeviewer 包含三個部門,其中有幾個 WordPress shortcode 和功能。
I. 程式碼查看器
a. Shortcodes: [codeview_byid] 和 [codeview_byname] 可以在「文章」中顯示文字。
b. 編輯指示: (edit(exam-ple)) 從「jArticles」頁面中製作 HTML 標記或其他轉義文字碼。
c. 樣式表: CSS 樣式表可使網頁佈局更容易使用 Code Viewer。
II. 文章載入器
a. Shortcodes: [articleloader_byid] 和 [articleloader_byname] 可以在「文章」中顯示 SVG 或其他腳本。
III. 顏色和樣式更改器
a. Shortcodes: [init_spansearch]、[spansearch] 和 [spansearch_all] 可以更改文字顏色和其他樣式。[divsearch] 可以更改列樣式。
b. JavaScript: 'spanSearch' 及其家族,提供上述短碼的引擎功能。
版權
Jimmy Codeviewer, A WordPress Plugin, 版權所有 2017 Kenta Ishii
Jimmy Codeviewer 是根據 GNU GPL 的條款發布的。
本程式是自由軟體,你可以重新散佈及/或修改它
根據 Free Software Foundation 所發行的 GNU General Public License 的條款和條件
版本 2 或(你可以選擇)之後的任何版本。
本程式是希望它是有用的,但不擔保有任何保固之外
連帶保固或適售性或特定目的的默示或明示保證。有關更多詳細信息,請參閱
GNU General Public License。
外掛標籤
開發者團隊
原文外掛簡介
Jimmy Codeviewer is a shortcode library to load text, SVG (Scalable Vector Graphics) and other scripts to WordPress pages. By using this plugin, you can reduce quantity of your code, e.g., if you want to put a proportional sample of programming code in your page, you just type one shortcode, then you get the sample with line numbers and colored words which you intended. In addition, you can make pages with layout similar to magazines on paper by using “magazine”, a theme template.
Introduction
In my first mind, I purposed to make a viewer for programming code for my site that introduces my articles. It was OK and named this plugin as “Jimmy Codeviewer”. But in making “Jimmy Codeviewer”, I think this could be a multipurpose text viewer. On this time, many news sites have very simple layout for their contents. You could watch magazines or papers at a news-stand everyday, and these are so colorful and design-riches. I just want these on Internet. Colorful design-riches actually make us some attention and affection. Web browsers are growing their rendering ability right now. This challenge — making magazines or newspapers on Internet — not a dream, but a real on Internet. In addition, I tried to change WordPress to SVG-Free. SVG (Scalable Vector Graphics) is one of vector graphics containers. It’s just like HTML and JavaScrpt. This is exactly the reason why WordPress Community prohibits to upload SVG Files by Media Uploader. If SVGs are programming codes, these should be stored as scripts in pages. But “Posts” and “Pages” are having their own purposes as public pages. So I decided to make “jArticles”, inner pages and store texts, SVGs and scripts to “jArticles”. For loading “jArticles” on “Posts”, I made several WordPress shortcodes.
Jimmy Codeviewer consists of three departments which have several WordPress shortcodes and functions.
I. Code Viewer
a. Shortcodes: [codeview_byid] and [codeview_byname] to show text in “Posts”.
b. Edit Instructions: (edit(exam-ple)) to make HTML markup or other escaped literal codes in “jArticles” pages.
c. Style Sheet: CSS Style Sheet to make web layout easier with Code Viewer.
II. Article Loader
a. Shortcodes: [articleloader_byid] and [articleloader_byname] to show SVGs or other scripts in “Posts”.
III. Color and Style Changer
a. Shortcodes: [init_spansearch], [spansearch] and [spansearch_all] to change the text color and other styles. [divsearch] to change the row styles.
b. JavaSctipt: ‘spanSearch’ and its family, the engine to provide the above shortcodes to function.
Copyright
The Jimmy Codeviewer, A WordPress Plugin, Copyright 2017 Kenta Ishii
Jimmy Codeviewer is distributed under the terms of the GNU GPL
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
