stylesheet location for code css

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
Post Reply
sfzeller
Registered User
Posts: 33
Joined: Mon Dec 11, 2017 9:02 pm

stylesheet location for code css

Post by sfzeller » Thu Sep 27, 2018 7:42 pm

Hi,
I'm trying to change the look & feel of how code appears in my postings (indent should be 4 tabs, not 8; certain commands should be in a different color etc.). I've been looking through /styles/prosilver/themes (3.2.2) and all the css files in there, but can't find where to edit the appearance of code. Any ideas? Thanks for your help!

User avatar
Rahber
Style Customisations
Style Customisations
Posts: 2718
Joined: Tue Feb 12, 2008 3:39 pm
Location: Pakistan
Name: Rahber
Contact:

Re: stylesheet location for code css

Post by Rahber » Mon Oct 01, 2018 9:48 am

it is in content.css search for .codebox code

User avatar
Hanakin
Infrastructure Team Member
Infrastructure Team Member
Posts: 740
Joined: Wed Dec 30, 2009 8:14 am
Name: Michael Miday
Contact:

Re: stylesheet location for code css

Post by Hanakin » Mon Oct 01, 2018 4:20 pm

We do not have code highlighting by default. You can style the box, but I order to customize the code it self you will need to use a third party library or extension

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51402
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: stylesheet location for code css

Post by Brf » Mon Oct 01, 2018 4:30 pm

Using [ code=php] does some highlighting. I am not sure what "4 tabs, not 8" means though.


You know, this topic appears to be a duplicate of viewtopic.php?f=496&t=2431391&p=14968471#p14968471
Did something change for you in the last 6 months?

Code: Select all

<?php
/**
*
* This file is part of the phpBB Forum Software package.
* @ignore
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('viewforum');

// Mark notifications read
if (($mark_notification = $request->variable('mark_notification', 0)))
{
	if ($user->data['user_id'] == ANONYMOUS)
	{
		if ($request->is_ajax())
		{
			trigger_error('LOGIN_REQUIRED');
		}

sfzeller
Registered User
Posts: 33
Joined: Mon Dec 11, 2017 9:02 pm

Re: stylesheet location for code css

Post by sfzeller » Mon Oct 01, 2018 5:20 pm

Thanks all for your replies! You are right, I am using a third-party tool, namely:
https://github.com/s9e/phpbb-ext-highli ... ighlighter
It does some highlighting, but I can't find where to make changes, for example have certain words be blue instead of red, comments in green instead of grayed out etc. - there is no style sheet to edit, it seems to pull everything from a .js file, which I can't see either.

This is probably the wrong forum to ask this question, but have any of you had experience with this tool:
https://sourceforge.net/projects/shphpbb/
I got it from here: viewtopic.php?f=434&t=2115118 but there is a warning not to install abandoned software in a live forum... This one has at least a ton of style sheets I could modify to my needs.

User avatar
Hanakin
Infrastructure Team Member
Infrastructure Team Member
Posts: 740
Joined: Wed Dec 30, 2009 8:14 am
Name: Michael Miday
Contact:

Re: stylesheet location for code css

Post by Hanakin » Mon Oct 01, 2018 10:00 pm

Support would be on the that extensions page

Post Reply

Return to “[3.2.x] Styles Support & Discussion”

Who is online

Users browsing this forum: No registered users and 263 guests