| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
- Pages:
- 1
- 2
| [ ! ] Code Synthax | |
|---|---|
| Tweet Topic Started: Jan 14 2015, 12:19 AM (1,173 Views) | |
| Kankuro | Jan 14 2015, 12:19 AM Post #1 |
|
かんくろ
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Test board Zeta Can anybody create or direct me to a code that will correctly add Synthax to the [code] BBcode? Like how you can do it with [html] but I want this for JQuery, Javascript, CSS, Lua, C+, C++, Python, Java, MySQL, and PHP If it helps any here are sources for code Synthax. http://prismjs.com/ https://highlightjs.org/ https://code.google.com/p/google-code-prettify/ Edited by Kankuro, Jan 14 2015, 11:18 PM.
|
![]() |
|
| Replies: | |
|---|---|
| Kankuro | Feb 8 2015, 07:54 PM Post #16 |
|
かんくろ
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Still only CSS and PHP. And PHP goes outside of the color box. (can you remove the white background so it's transparent or matches my theme's colors and stuff? Error: http://prntscr.com/62stu8 http://prntscr.com/630vbf Edited by Kankuro, Feb 9 2015, 12:29 PM.
|
![]() |
|
| RedBldSandman | Feb 9 2015, 06:03 PM Post #17 |
![]()
Asante sana Squash banana
![]() ![]() ![]() ![]() ![]() ![]()
|
The code already adds in the <pre> tags (hence the change in background which can be fixed via simple css changes) and that wasn't the main issue in any case. The text going out of the code box can also be fixed easily with CSS. I'd need to see your test board to do any further tests as it's working absolutely perfectly in all use cases on my test forum and I need to see why it is only working on the CSS and PHP codes you test. EDIT: I forgot to mention that this code will screw up any the display of codes which themselves contain <br/> tags in any form. There are easy alternatives which work fine (tested) and don't have this problem but I need to work out why the code won't work on other languages you test. EDIT 2: Just saw that the code I gave you isn't the current one on my test board and doesn't add in the the <pre> tags xD I need a link to your test board anyways to work out the what's causing the issues as that version still works fine on my test board. The white background is probably caused by the prism css theme being used and can still be changed very easily. Edited by RedBldSandman, Feb 9 2015, 07:16 PM.
|
![]() |
|
| Kankuro | Feb 9 2015, 07:31 PM Post #18 |
|
かんくろ
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
It's not on my test board. And if it's going to mess up other codes I have then I'm not going to use it. I'm not going to render multiple codes useless just to make this one work. I'm sure there is a way around that issue. Until it's found or created I'm not using it. http://w11.zetaboards.com/GamesAndAnime/topic/10965153/ Edited by Kankuro, Feb 9 2015, 07:33 PM.
|
![]() |
|
| RedBldSandman | Feb 9 2015, 10:27 PM Post #19 |
![]()
Asante sana Squash banana
![]() ![]() ![]() ![]() ![]() ![]()
|
There were issues with the structure of the other code so try this instead for the Below the Board part of the code:Don't worry about the look of it, I can recommend CSS changes once I'm sure the code is working. This version also deals with the issue of <br> text in codes. Your board is bloated full of codes (I mean loading a page makes 16 ajax requests to other pages(!) some of which are duplicates...) but this shouldn't interfere with other codes from the way I've structured it. |
![]() |
|
| Kankuro | Feb 9 2015, 10:55 PM Post #20 |
|
かんくろ
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I've added it, seems to work. I don't like how the text looks REALLY odd though. It's like it has a white shadow effect. |
![]() |
|
| RedBldSandman | Feb 9 2015, 11:18 PM Post #21 |
![]()
Asante sana Squash banana
![]() ![]() ![]() ![]() ![]() ![]()
|
Change the Javascripts bit to just:Then for the Gamesandanime v3 theme add this to the end of your Theme Appearance: For your mobile theme add this to the end of your Theme Appearance:
Edit: Also change your Select All code to:
Edited by RedBldSandman, Feb 9 2015, 11:28 PM.
|
![]() |
|
| Kankuro | Feb 10 2015, 12:55 AM Post #22 |
|
かんくろ
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Isn't there supposed to be some blues and purples and stuff in some languages? EDIT: Also the select all code seems to have broken... Edited by Kankuro, Feb 10 2015, 01:10 AM.
|
![]() |
|
| RedBldSandman | Feb 10 2015, 08:14 AM Post #23 |
![]()
Asante sana Squash banana
![]() ![]() ![]() ![]() ![]() ![]()
|
It's using a different theme which is designed for a dark background, other themes are available on the the prism site which you can preview using the big cirlces on the right. The default theme will not look good with a dark background as the default colour is black hence why I gave you a different theme. If you're going to host the select all code in a file then take out the <script> tags... |
![]() |
|
| Kankuro | Feb 10 2015, 11:19 AM Post #24 |
|
かんくろ
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
But why aren't some things colored? Like addclass, parents, find, etc. They are on this site: http://prntscr.com/63egag EDIT: Also, can this be added? http://prismjs.com/plugins/line-numbers/ Edited by Kankuro, Feb 10 2015, 11:28 AM.
|
![]() |
|
| RedBldSandman | Feb 10 2015, 04:52 PM Post #25 |
![]()
Asante sana Squash banana
![]() ![]() ![]() ![]() ![]() ![]()
|
That theme doesn't seem to highlight functions. Just choose whichever theme you prefer and I'll get the css for that done and add in the line numbers code/css. |
![]() |
|
| Kankuro | Feb 10 2015, 11:56 PM Post #26 |
|
かんくろ
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Default or Coy, both may have issues working on a dark theme like the one I use, could you fix that? If so I like Default the best. |
![]() |
|
| Roby | Apr 10 2015, 01:32 PM Post #27 |
![]()
#27
![]()
|
This request has gone a lengthy period of time without any new activity, therefore it is being marked as expired. This means that the request was typically too time-consuming or irritating for coders (who provide this service voluntarily in their free time) to complete. Thank you. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Closed Requests · Next Topic » |
- Pages:
- 1
- 2
| Track Topic · E-mail Topic |
8:30 PM Jul 10
|


![]](http://b1.ifrm.com/0/1/0/p601690/pipright.png)





8:30 PM Jul 10